[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 [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.malobeo {
|
(lib.mkIf cfg.malobeo {
|
||||||
sops.secrets.malobeoUserPassword.neededForUsers = true;
|
sops.secrets.malobeoUserPassword = {
|
||||||
|
sopsFile = ./secrets.yaml;
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
users.users.malobeo = {
|
users.users.malobeo = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "malobeo user, password and ssh access, no root";
|
description = "malobeo user, password and ssh access, no root";
|
||||||
extraGroups = [ "pipewire" "pulse-access" "scanner" "lp" ];
|
extraGroups = [ "pipewire" "pulse-access" "scanner" "lp" ];
|
||||||
openssh.authorizedKeys.keys = sshKeys.admins;
|
openssh.authorizedKeys.keys = sshKeys.admins;
|
||||||
hashedPassword = config.sops.secrets.malobeoUserPassword.path;
|
hashedPasswordFile = config.sops.secrets.malobeoUserPassword.path;
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [];
|
environment.systemPackages = with pkgs; [];
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user