fix(nix): remove flattenAttrs
unfortunately modules don't like to be merged
This commit is contained in:
parent
9abcb6c85b
commit
1dc3f4bf44
3 changed files with 4 additions and 33 deletions
|
@ -1,15 +1,13 @@
|
|||
{ inputs, config, ... }:
|
||||
let
|
||||
inherit (cfg.lib) forAllUsers' flattenAttrs;
|
||||
inherit (cfg.lib) forAllUsers';
|
||||
cfg = config.flake;
|
||||
hm = inputs.home-manager;
|
||||
globalCfg = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit (cfg) manifest; };
|
||||
sharedModules = [
|
||||
(flattenAttrs (cfg.modules.homeManager or { }))
|
||||
];
|
||||
sharedModules = [ cfg.modules.homeManager.default ];
|
||||
users = forAllUsers' (name: _: cfg.homes.${name});
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue