add malo user password
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m16s

This commit is contained in:
ahtlon
2025-01-28 12:04:40 +01:00
parent dfd8eb9c15
commit fdb9980176
3 changed files with 69 additions and 2 deletions

View File

@@ -10,12 +10,13 @@ in
};
config = lib.mkMerge [
(lib.mkIf cfg.malobeo {
sops.secrets.malobeoUserPassword.neededForUsers = true;
users.users.malobeo = {
isNormalUser = true;
description = "malobeo user, password via sops -d ";
description = "malobeo user, password and ssh access, no root";
extraGroups = [ "pipewire" "pulse-access" "scanner" "lp" ];
openssh.authorizedKeys.keys = sshKeys.admins;
hashedPassword = config.sops.secrets.malobeoUserPassword.path;
};
environment.systemPackages = with pkgs; [];
})