about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configuration/specimen.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/configuration/specimen.nix b/configuration/specimen.nix
index 41a5008..a20d4ab 100644
--- a/configuration/specimen.nix
+++ b/configuration/specimen.nix
@@ -1,10 +1,10 @@
-{ pkgs, ... }:
+{ config, ... }:
 
-let
-  name = "max mustermann";
-  name-file = pkgs.writeText "specimen-name" name;
-in
 {
+  age.secrets.name = {
+    file = ../secrets/name.age;
+  };
+
   services.specimen = {
     enable = true;
 
@@ -12,6 +12,6 @@ in
     port = 4444;
     openFirewall = true;
 
-    namePath = name-file;
+    namePath = config.age.secrets.name.path;
   };
 }