Add: encrypted password for dunoz user

This commit is contained in:
DuN0z 2025-10-30 08:19:01 +01:00
parent 1151aaa3cb
commit 55c3398a43
3 changed files with 13 additions and 5 deletions

View file

@ -29,11 +29,16 @@ in {
PasswordAuthentication = true; PasswordAuthentication = true;
}; };
users.users.dunoz = { age.identityPaths = [ "/etc/agenix/penduick.key" ];
isNormalUser = true; age.secrets."dunoz-password-penduick".file = ../../secrets/dunoz-password-penduick.age;
extraGroups = [ "wheel" "networkmanager" ]; users= {
initialPassword = "temp"; mutableUsers = false ;
shell = pkgs.zsh; users.dunoz = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
hashedPasswordFile = config.age.secrets."dunoz-password-penduick".path;
shell = pkgs.zsh;
};
}; };
home-manager = { home-manager = {
@ -44,6 +49,7 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git htop wget curl git htop wget curl
neovim neovim
age ssh-to-age
]; ];

Binary file not shown.

View file

@ -1,8 +1,10 @@
let let
serveur = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPRVxB7usThGHf8cuSPE4sjdqSaPNlwWAZPEo1wUgHz6 root@terre-neuvas"; serveur = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPRVxB7usThGHf8cuSPE4sjdqSaPNlwWAZPEo1wUgHz6 root@terre-neuvas";
admin = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAxranFaz3jRfvYE2M6FvRUWjzviIWjWd1mucgKeuSK2 lomig@nixos"; admin = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAxranFaz3jRfvYE2M6FvRUWjzviIWjWd1mucgKeuSK2 lomig@nixos";
penduick = "age1rnyey8shjxyaq43dzlnhtfkcm3ra4hy3ygh6c46w4xmr7fe9fe3s00nh2r";
in in
{ {
"goaccess-password.age".publicKeys = [ serveur admin ]; "goaccess-password.age".publicKeys = [ serveur admin ];
"dunoz-password-penduick.age".publicKeys = [ penduick ];
} }