From 0468cf2621e8ef812f774bbf2eed396b4c0d4602 Mon Sep 17 00:00:00 2001 From: andromeda Date: Tue, 30 Dec 2025 17:45:01 +0100 Subject: use agenix --- machines/173-249-5-230/configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'machines/173-249-5-230/configuration.nix') diff --git a/machines/173-249-5-230/configuration.nix b/machines/173-249-5-230/configuration.nix index b8b403e..853a5db 100644 --- a/machines/173-249-5-230/configuration.nix +++ b/machines/173-249-5-230/configuration.nix @@ -1,4 +1,9 @@ -{machine, ...}: { +{ + config, + machine, + ... +}: { + age.secrets.secret1.file = ../../secrets/secret1.age; boot.tmp.cleanOnBoot = true; boot.loader.grub.devices = ["nodev"]; environment.persistence."/nix/persist" = { @@ -66,7 +71,7 @@ users.users."mtgmonkey" = { isNormalUser = true; description = "mtgmonkey"; - initialPassword = "password"; + passwordFile = builtins.toString config.age.secrets.secret1.path; extraGroups = ["wheel"]; openssh.authorizedKeys.keys = machine.pub-keys.ssh; }; -- cgit v1.3