add password to users

This commit is contained in:
fwastring 2025-11-23 21:52:13 +01:00
parent 48bb58e1bc
commit 0fb755d91b
5 changed files with 52 additions and 39 deletions

View file

@ -4,11 +4,13 @@
...
}:
{
sops.secrets.user-password = { };
users = {
defaultUserShell = pkgs.bash;
mutableUsers = false;
users = {
fw = {
initialPassword = "password";
hashedPasswordFile = config.sops.secrets.user-password.path;
isNormalUser = true;
description = "Fredrik Wastring";
extraGroups = [
@ -20,7 +22,7 @@
];
openssh.authorizedKeys = {
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFpJBGPIfPB1BwSG7aoKqwfccyZSaU7J3xpJ8behMp9N fw@core"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFpJBGPIfPB1BwSG7aoKqwfccyZSaU7J3xpJ8behMp9N fw@core"
];
};
};