fix: install shared modules, strip homes from config

This commit is contained in:
Jake Hamilton 2024-02-25 04:03:02 -08:00
parent 8e0d7a3cf6
commit c13316eace
No known key found for this signature in database
GPG key ID: 9762169A1B35EA68
2 changed files with 7 additions and 1 deletions

View file

@ -65,6 +65,7 @@ in rec {
"outputsBuilder"
"packagesPrefix"
"hosts"
"homes"
"channels-config"
"templates"
"package-namespace"

View file

@ -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;
};
}