move user config
This commit is contained in:
parent
44ac3ac799
commit
8a50a29ef7
@ -22,7 +22,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
config.myConfig = lib.mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
myConfig = {
|
||||
bootloader.enable = true;
|
||||
locale.enable = true;
|
||||
@ -55,7 +55,7 @@ in {
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
users.${cfg.user} = import ./home.nix;
|
||||
users.${cfg.user} = import ../../hosts/${cfg.network.hostName}/home.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -21,6 +21,6 @@ in {
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
||||
users.users.${cfg.user}.extraGroups = ["networkmanager"];
|
||||
users.users.${config.myConfig.user}.extraGroups = ["networkmanager"];
|
||||
};
|
||||
}
|
||||
|
@ -35,6 +35,6 @@ in {
|
||||
};
|
||||
};
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||
users.users.${cfg.user}.extraGroups = ["libvirtd"];
|
||||
users.users.${config.myConfig.user}.extraGroups = ["libvirtd"];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user