summaryrefslogtreecommitdiff
path: root/machines/173-249-5-230/configuration.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2025-12-30 17:45:01 +0100
committerandromeda <andromeda@lenovo>2025-12-30 17:45:01 +0100
commit0468cf2621e8ef812f774bbf2eed396b4c0d4602 (patch)
treeb6657b5225c1dfc73a38dd29b258bccbba0467ec /machines/173-249-5-230/configuration.nix
parente39747ae2e9f4032b234f1f8d9a399b240f66539 (diff)
use agenix
Diffstat (limited to 'machines/173-249-5-230/configuration.nix')
-rw-r--r--machines/173-249-5-230/configuration.nix9
1 files changed, 7 insertions, 2 deletions
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;
};