add password to users
This commit is contained in:
parent
48bb58e1bc
commit
0fb755d91b
5 changed files with 52 additions and 39 deletions
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue