mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
fix: install shared modules, strip homes from config
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user