add server user password
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
machine,
|
||||
...
|
||||
}: {
|
||||
age.secrets.secret1.file = ../../secrets/secret1.age;
|
||||
age.secrets.secret2.file = ../../secrets/secret2.age;
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
boot.loader.grub.devices = ["nodev"];
|
||||
environment.persistence."/nix/persist" = {
|
||||
@@ -71,7 +71,7 @@
|
||||
users.users."mtgmonkey" = {
|
||||
isNormalUser = true;
|
||||
description = "mtgmonkey";
|
||||
passwordFile = builtins.toString config.age.secrets.secret1.path;
|
||||
hashedPasswordFile = builtins.toString config.age.secrets.secret2.path;
|
||||
extraGroups = ["wheel"];
|
||||
openssh.authorizedKeys.keys = machine.pub-keys.ssh;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user