From 78fc3e6cd43e6df90e17067fe0eb52b9badf9a75 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 20 Mar 2025 22:14:05 +0100 Subject: feat(nixos-module): allow setting environment variables --- nix/modules/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- cgit 1.4.1