From 549e948321f9591cc0dd3bf4f8abbb45e8d511bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Mon, 20 May 2024 00:16:20 -0700 Subject: [PATCH] chore: nixos module minor fixes --- nix/modules/perfitd.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/modules/perfitd.nix b/nix/modules/perfitd.nix index 419dd82..168d5db 100644 --- a/nix/modules/perfitd.nix +++ b/nix/modules/perfitd.nix @@ -28,7 +28,7 @@ let RUST_BACKTRACE = "1"; }; example = { - RUST_LOG = "info,fm=debug"; + RUST_LOG = "info"; RUST_BACKTRACE = "1"; }; }; @@ -120,6 +120,9 @@ in nameValuePair "perfitd-${perfitdName}" ( let startScript = pkgs.writeShellScript "perfitd-start" ( + '' + set -euo pipefail + '' + (if cfg.rootAccessTokenFile != null then '' secret=$(${pkgs.coreutils}/bin/head -n 1 "${cfg.rootAccessTokenFile}")