all repos — searchix @ 78fc3e6cd43e6df90e17067fe0eb52b9badf9a75

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat(nixos-module): allow setting environment variables
Alan Pearce alan@alanpearce.eu
Thu, 20 Mar 2025 22:14:05 +0100
commit

78fc3e6cd43e6df90e17067fe0eb52b9badf9a75

parent

de987806cd030e85a22e11b35835a3524068adb7

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M nix/modules/default.nixnix/modules/default.nix
@@ -74,6 +74,12 @@ default = "/var/lib/searchix";       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 {