about summary refs log tree commit diff stats
path: root/nix
diff options
context:
space:
mode:
authorAlan Pearce2025-03-20 22:14:05 +0100
committerAlan Pearce2025-03-20 22:14:05 +0100
commit78fc3e6cd43e6df90e17067fe0eb52b9badf9a75 (patch)
tree469e392620f9f4356b9e4073959991a54f666720 /nix
parentde987806cd030e85a22e11b35835a3524068adb7 (diff)
downloadsearchix-78fc3e6cd43e6df90e17067fe0eb52b9badf9a75.tar.lz
searchix-78fc3e6cd43e6df90e17067fe0eb52b9badf9a75.tar.zst
searchix-78fc3e6cd43e6df90e17067fe0eb52b9badf9a75.zip
feat(nixos-module): allow setting environment variables
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 d5f581b..6b7232b 100644
--- a/nix/modules/default.nix
+++ b/nix/modules/default.nix
@@ -74,6 +74,12 @@ in
       description = "Home directory for searchix user";
     };
 
+    environment = mkOption {
+      type = with types; attrsOf (nullOr (oneOf [ str path package ]));
+      default = { };
+      description = "Environment variables passed to the service process.";
+    };
+
     settings = mkOption {
       default = { };
       type = types.submodule {