mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 00:55:58 -05:00
properly support home manager modules
This commit is contained in:
@@ -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 { };
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user