summaryrefslogtreecommitdiff
path: root/configuration
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-12-29 22:46:03 +0100
committerMel <einebeere@gmail.com>2024-12-29 22:46:03 +0100
commitd5ce2d93fd9be2200745c1d5954330efc5080f28 (patch)
treeb06808adfdc6febb8d4493d5fa131e5ddef7acdf /configuration
parentcd2a961184d2ef3fd706adc2800dc52d8eb5673f (diff)
downloadspecimen-d5ce2d93fd9be2200745c1d5954330efc5080f28.tar.zst
specimen-d5ce2d93fd9be2200745c1d5954330efc5080f28.zip
Use name secret in specimen application
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'configuration')
-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;
};
}