Put user definition in the shared file to reduce duplicate code

This commit is contained in:
Lillian Violet 2024-02-22 12:52:10 +01:00
parent 6dd7bfeb5c
commit a8a5cdec7b
5 changed files with 19 additions and 50 deletions

View file

@ -10,4 +10,22 @@
./locale
./packages
];
sops.secrets."lillian-password".neededForUsers = true;
users.users.lillian = {
isNormalUser = true;
extraGroups = ["sudo" "networkmanager" "wheel" "vboxsf" "docker"];
shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets."lillian-password".path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGatnsrKMoZSW24Lw4meb6BAgHgeyN/8rUib4nZVT+CB lillian@EDI"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7+LEQnC/nlYp7nQ4p6hUCqaGiqfsA3Mg8bSy+zA8Fj lillian@GLaDOS"
];
};
users.mutableUsers = false;
users.users.root = {
hashedPassword = "*";
};
}