add server user password

This commit is contained in:
andromeda
2025-12-30 19:45:43 +01:00
parent 0468cf2621
commit 9e402fdfa3
3 changed files with 10 additions and 2 deletions

View File

@@ -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;
};