summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-03 19:09:31 +0200
committerRory& <root@rory.gay>2025-06-03 19:10:57 +0200
commitf18d6fb944448c01734f409470072a3dfda2db47 (patch)
tree65947a671a0136a3936fa7b5b617821e8a831e99 /flake.nix
parentFix logRequests option (diff)
downloadnodejs-final-assignment-f18d6fb944448c01734f409470072a3dfda2db47.tar.xz
Clean up pointless error handling, coerce booleans to string in nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix

index b70d0b2..e82caa8 100644 --- a/flake.nix +++ b/flake.nix
@@ -139,12 +139,12 @@ ]; requires = [ "mongodb.service" ]; environment = { - PORT = cfg.port; - LOG_REQUESTS = cfg.logRequests; + PORT = toString cfg.port; DATABASE_SECRET_PATH = "/run/credentials/safensound.service/mongodb"; JWT_SECRET_PATH = cfg.jwtSecretPath; - LOG_QUERIES = cfg.logQueries; - LOG_AUTH = cfg.logAuth; + LOG_AUTH = lib.boolToString cfg.logAuth; + LOG_QUERIES = lib.boolToString cfg.logQueries; + LOG_REQUESTS = cfg.logRequests; }; serviceConfig = { Type = "simple";