Skip to content

Commit

Permalink
chore: nixos module minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc committed May 20, 2024
1 parent 5a5976d commit 549e948
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix/modules/perfitd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let
RUST_BACKTRACE = "1";
};
example = {
RUST_LOG = "info,fm=debug";
RUST_LOG = "info";
RUST_BACKTRACE = "1";
};
};
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit 549e948

Please sign in to comment.