diff --git a/snowfall-lib/flake/default.nix b/snowfall-lib/flake/default.nix index a0904ec..391172b 100644 --- a/snowfall-lib/flake/default.nix +++ b/snowfall-lib/flake/default.nix @@ -65,6 +65,7 @@ in rec { "outputsBuilder" "packagesPrefix" "hosts" + "homes" "channels-config" "templates" "package-namespace" diff --git a/snowfall-lib/home/default.nix b/snowfall-lib/home/default.nix index c654919..23a9957 100644 --- a/snowfall-lib/home/default.nix +++ b/snowfall-lib/home/default.nix @@ -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; }; }