From c6ad91fb358b5bbb47866863b7bb718dde93934a Mon Sep 17 00:00:00 2001 From: ibizaman Date: Tue, 23 Sep 2025 08:49:57 +0200 Subject: [PATCH] pinchflat: use temp dir to store secret --- modules/services/pinchflat.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/pinchflat.nix b/modules/services/pinchflat.nix index e9dffda..a569157 100644 --- a/modules/services/pinchflat.nix +++ b/modules/services/pinchflat.nix @@ -123,14 +123,14 @@ in config = lib.mkIf cfg.enable { systemd.tmpfiles.rules = [ - "d '/etc/pinchflat' 0750 root root - -" + "d '/run/pinchflat' 0750 root root - -" ]; # Pinchflat relies on the global value so for now this is the only way to pass the option in. time.timeZone = lib.mkDefault cfg.timeZone; services.pinchflat = { inherit (cfg) enable port mediaDir; - secretsFile = "/etc/pinchflat/secrets.env"; + secretsFile = "/run/pinchflat/secrets.env"; extraConfig = { ENABLE_PROMETHEUS = true; # TZ = "as"; # I consider where you live to be sensible so it should be passed as a secret. @@ -148,7 +148,7 @@ in SECRET_KEY_BASE.source = cfg.secretKeyBase.result.path; # TZ = cfg.secretKeyBase.result.path; # Uncomment when PR is merged. }; - resultPath = "/etc/pinchflat/secrets.env"; + resultPath = "/run/pinchflat/secrets.env"; generator = shblib.toEnvVar; }; serviceConfig.Type = "oneshot";