auto: bootstrapping sparky

This commit is contained in:
Sam 2024-05-22 20:34:18 +01:00
parent b482071005
commit 871d4f7256
2 changed files with 4 additions and 2 deletions

View File

@ -17,9 +17,10 @@ in
]; ];
users = { users = {
mutableUsers = false; mutableUsers = true;
extraUsers = { extraUsers = {
root = { root = {
initialPassword = "1234";
hashedPasswordFile = sopsHashedPasswordFile; hashedPasswordFile = sopsHashedPasswordFile;
}; };
}; };

View File

@ -7,9 +7,10 @@ let
in in
{ {
users.users.sam = { users.users.sam = {
#mutableUsers = false; mutableUsers = true;
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; # default shell shell = pkgs.zsh; # default shell
initialPassword = "nixos";
hashedPasswordFile = sopsHashedPasswordFile; hashedPasswordFile = sopsHashedPasswordFile;
openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key); openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key);