Skip to content

Commit

Permalink
Set system service environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralchroma authored Jan 13, 2025
1 parent 685f39e commit 28c7b2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@

# Would be nice if we validated this to ensure that we aren't passing a set of invalid options, but oh well.
ExecStart = ''
RUST_BACKTRACE = true \
${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/axolotl_client-api \
${optionalString (cfg.postgresUrl != null) "--postgres-url ${cfg.postgresUrl}"} \
${optionalString (cfg.postgresUrlFile != null) "--postgres-url-file ${cfg.postgresUrlFile}"} \
Expand All @@ -91,6 +90,8 @@
${optionalString (cfg.notesFile != null) "--notes-file ${cfg.notesFile}"}
'';

environment.RUST_BACKTRACE = true;

# Why can't this shit just be the default?
CapabilityBoundingSet = "";
LockPersonality = true;
Expand Down

0 comments on commit 28c7b2a

Please sign in to comment.