about summary refs log tree commit diff stats
path: root/nix
diff options
context:
space:
mode:
authorAlan Pearce2024-05-14 17:38:34 +0200
committerAlan Pearce2024-05-14 17:38:34 +0200
commit634534d3d22d8f458a70a1891d061c3cdefd4dd1 (patch)
tree42195a1b38175425f6f9fda780bd9423dfc08ef9 /nix
parenta94632eb788fd014bea0917a683896c44866f431 (diff)
downloadsearchix-634534d3d22d8f458a70a1891d061c3cdefd4dd1.tar.lz
searchix-634534d3d22d8f458a70a1891d061c3cdefd4dd1.tar.zst
searchix-634534d3d22d8f458a70a1891d061c3cdefd4dd1.zip
feat(module): add default for Web.Environment
Diffstat (limited to 'nix')
-rw-r--r--nix/modules/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nix/modules/default.nix b/nix/modules/default.nix
index 2480ce9..f6f8fbf 100644
--- a/nix/modules/default.nix
+++ b/nix/modules/default.nix
@@ -109,6 +109,12 @@ in
                   default = "http://localhost:3000";
                 };
 
+                environment = mkOption {
+                  type = with types; either "production" "development";
+                  description = "Environment name for logging";
+                  default = "production";
+                };
+
                 sentryDSN = mkOption {
                   type = types.str;
                   description = "Optionally enable sentry to track errors.";