ACTUALLY use users.users.<name>.manageHome

This commit is contained in:
do butterflies cry? 2026-03-07 18:52:06 +10:00
parent 23449396f7
commit 169bf2bf48
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 6 additions and 4 deletions

View file

@ -52,15 +52,17 @@ in {
users =
config.users.users
|> attrNames
|> filter (x: pathExists (root + "/homes/${x}"))
|> filter (x: x.manageHome && pathExists /${root}/homes/${x})
|> (x:
lib.genAttrs x (y:
import (root + "/homes/${y}")));
import /${root}/homes/${y}));
extraSpecialArgs = _cerulean.specialArgs;
sharedModules = [
../home
# user configuration
(import (root + "/nixpkgs.nix"))
(import /${root}/nixpkgs.nix)
# options declarations
(import ./nixpkgs.nix (args // {contextName = "homes";}))
];

View file

@ -65,7 +65,7 @@
# flatten recursion result
|> concatLists
# find import location
|> map (group: nt.findImport (/${root}/groups/${group._name})
|> map (group: nt.findImport /${root}/groups/${group._name})
# filter by uniqueness
|> nt.prim.unique
# ignore missing groups