move user config

This commit is contained in:
Max Känner 2024-12-29 14:29:48 +01:00
parent 44ac3ac799
commit 8a50a29ef7
3 changed files with 4 additions and 4 deletions

View File

@ -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;
};
};
}

View File

@ -21,6 +21,6 @@ in {
firewall.enable = false;
};
users.users.${cfg.user}.extraGroups = ["networkmanager"];
users.users.${config.myConfig.user}.extraGroups = ["networkmanager"];
};
}

View File

@ -35,6 +35,6 @@ in {
};
};
boot.binfmt.emulatedSystems = ["aarch64-linux"];
users.users.${cfg.user}.extraGroups = ["libvirtd"];
users.users.${config.myConfig.user}.extraGroups = ["libvirtd"];
};
}