[user module] fix sops user password
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m17s
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m17s
This commit is contained in:
@@ -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; [];
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user