[user module] fix sops user password
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m17s

This commit is contained in:
ahtlon
2025-01-29 09:29:58 +01:00
parent eb61088dc9
commit 8b33a1c704

View File

@@ -10,13 +10,16 @@ in
};
config = lib.mkMerge [
(lib.mkIf cfg.malobeo {
sops.secrets.malobeoUserPassword.neededForUsers = true;
sops.secrets.malobeoUserPassword = {
sopsFile = ./secrets.yaml;
neededForUsers = true;
};
users.users.malobeo = {
isNormalUser = true;
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;
hashedPasswordFile = config.sops.secrets.malobeoUserPassword.path;
};
environment.systemPackages = with pkgs; [];
})