ACTUALLY use users.users.<name>.manageHome
This commit is contained in:
parent
23449396f7
commit
169bf2bf48
2 changed files with 6 additions and 4 deletions
|
|
@ -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";}))
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue