fix: install shared modules, strip homes from config
This commit is contained in:
parent
8e0d7a3cf6
commit
c13316eace
2 changed files with 7 additions and 1 deletions
|
|
@ -65,6 +65,7 @@ in rec {
|
|||
"outputsBuilder"
|
||||
"packagesPrefix"
|
||||
"hosts"
|
||||
"homes"
|
||||
"channels-config"
|
||||
"templates"
|
||||
"package-namespace"
|
||||
|
|
|
|||
|
|
@ -231,7 +231,11 @@ in {
|
|||
src = "${user-modules-root}/home";
|
||||
};
|
||||
|
||||
shared-modules =
|
||||
shared-modules = builtins.map (module: {
|
||||
config.home-manager.sharedModules = [module];
|
||||
}) (users.modules or []);
|
||||
|
||||
shared-user-modules =
|
||||
mapAttrsToList
|
||||
(module-path: module: {
|
||||
_file = "${user-modules-root}/home/${module-path}/default.nix";
|
||||
|
|
@ -361,6 +365,7 @@ in {
|
|||
snowfall-user-home-module
|
||||
]
|
||||
++ shared-modules
|
||||
++ shared-user-modules
|
||||
++ system-modules;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue