Add: passwd with agenix

This commit is contained in:
DuN0z 2025-11-09 10:48:19 +01:00
parent a42007c7c5
commit 0c76b0443d
3 changed files with 7 additions and 5 deletions

View file

@ -29,14 +29,14 @@ in {
PasswordAuthentication = true;
};
age.identityPaths = [ "/etc/agenix/penduick.key" ];
age.secrets."dunoz-password-penduick".file = ../../secrets/dunoz-password-penduick.age;
age.identityPaths = [ "/etc/agenix/penduick.key" "/etc/agenix/dunoz-admin.key" ];
# age.secrets."dunoz-password-penduick".file = ../../secrets/dunoz-password-penduick.age;
users= {
mutableUsers = false ;
# mutableUsers = false ;
users.dunoz = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
hashedPasswordFile = config.age.secrets."dunoz-password-penduick".path;
# passwordFile = config.age.secrets."dunoz-password-penduick".path;
shell = pkgs.zsh;
};
};
@ -50,6 +50,7 @@ in {
git htop wget curl
neovim
age ssh-to-age
weechat
];