calling it, multi user is building!!!
This commit is contained in:
parent
ce69116c39
commit
c165dbd9a3
8 changed files with 100 additions and 42 deletions
|
@ -1,10 +1,8 @@
|
|||
args@{ self, inputs, lib, pkgs, system ? "", config, options, ... }: let
|
||||
args@{ inputs, lib, pkgs, config, options, ... }: let
|
||||
inherit (lib.my) mapModulesRec';
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
# (import ../modules/home/shell/default.nix (args // { user = "root"; }))
|
||||
]
|
||||
imports = []
|
||||
++(mapModulesRec' ../modules/home (file: (import file (args // { user = "root"; }))));
|
||||
|
||||
config = {
|
||||
|
|
|
@ -38,7 +38,6 @@ in rec
|
|||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
"${path}/hardware.nix"
|
||||
./_root.nix
|
||||
]
|
||||
++ (mapModulesRec' ../modules/system import);
|
||||
|
||||
|
@ -59,15 +58,15 @@ in rec
|
|||
})
|
||||
(filterAttrs (n: v: !elem n ["system"]) attrs)
|
||||
(import path)
|
||||
(args@{ inputs, lib, pkgs, config, options, ... }: {
|
||||
imports = mapModulesRec' ../modules/home (file: (import file (args // { user = "root"; })));
|
||||
})
|
||||
]
|
||||
++ (map (user: {
|
||||
_module.args.user = user;
|
||||
|
||||
imports = []
|
||||
++ (mapModulesRec' ../modules/home (file: file));
|
||||
++ (map (user: (args@{ inputs, lib, pkgs, config, options, ... }: {
|
||||
imports = mapModulesRec' ../modules/home (file: (import file (args // { inherit user; })));
|
||||
|
||||
modules.${user} = (import "${path}/users/${user}/default.nix" args);
|
||||
}) users);
|
||||
})) users);
|
||||
};
|
||||
|
||||
mapHosts = dir: attrs @ {system ? system, ...}:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue