Use recursiveUpdate instead of //
This commit is contained in:
parent
9d943cf1b4
commit
a88633b66c
1 changed files with 8 additions and 5 deletions
|
@ -95,11 +95,14 @@ in
|
|||
];
|
||||
|
||||
home-manager.users.charlotte = { ... }:
|
||||
(lib.optionalAttrs config.chvp.nix.enableDirenv baseDirenv) //
|
||||
(lib.optionalAttrs config.chvp.nix.enableUnfree baseUnfree) //
|
||||
(lib.optionalAttrs config.chvp.nix.enableNixIndex baseNixIndex);
|
||||
lib.recursiveUpdate
|
||||
(lib.optionalAttrs config.chvp.nix.enableDirenv baseDirenv)
|
||||
(lib.recursiveUpdate
|
||||
(lib.optionalAttrs config.chvp.nix.enableUnfree baseUnfree)
|
||||
(lib.optionalAttrs config.chvp.nix.enableNixIndex baseNixIndex));
|
||||
home-manager.users.root = { ... }:
|
||||
(lib.optionalAttrs config.chvp.nix.enableDirenv baseDirenv) //
|
||||
(lib.optionalAttrs config.chvp.nix.enableUnfree baseUnfree);
|
||||
lib.recursiveUpdate
|
||||
(lib.optionalAttrs config.chvp.nix.enableDirenv baseDirenv)
|
||||
(lib.optionalAttrs config.chvp.nix.enableUnfree baseUnfree);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue