[user module] use hashed password without sops (for now)

This commit is contained in:
ahtlon
2025-03-01 21:11:50 +01:00
parent 505354078b
commit ff2ccd5fb4
3 changed files with 2 additions and 72 deletions

View File

@@ -10,16 +10,12 @@ in
};
config = lib.mkMerge [
(lib.mkIf cfg.malobeo {
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;
hashedPasswordFile = config.sops.secrets.malobeoUserPassword.path;
hashedPassword = "$y$j9T$39oJwpbFDeETiyi9TjZ/2.$olUdnIIABp5TQSOzoysuEsomn2XPyzwVlM91ZsEkIz1";
};
environment.systemPackages = with pkgs; [];
})