properly support home manager modules

This commit is contained in:
mjallen18
2026-03-25 16:42:55 -05:00
parent 342561701e
commit 94056dbb28
2 changed files with 8 additions and 2 deletions

View File

@@ -193,7 +193,13 @@ let
namespace = snowfall-config.namespace or "internal";
custom-flake-options = flake.without-snowfall-options full-flake-options;
alias = full-flake-options.alias or { };
homes = snowfall-lib.home.create-homes (full-flake-options.homes or { });
homes = snowfall-lib.home.create-homes (
(full-flake-options.homes or { })
// {
modules =
(full-flake-options.homes.modules or [ ]) ++ (full-flake-options.systems.modules.home or [ ]);
}
);
systems = snowfall-lib.system.create-systems {
systems = full-flake-options.systems or { };
homes = full-flake-options.homes or { };

View File

@@ -219,7 +219,7 @@ in
module-path: module: args:
(module args)
// {
_file = "${user-homes-root}/${module-path}/default.nix";
_file = "${user-modules-root}/home/${module-path}/default.nix";
}
) user-home-modules;