feat(nixos-module): allow setting environment variables
Alan Pearce alan@alanpearce.eu
Thu, 20 Mar 2025 22:14:05 +0100
1 files changed, 6 insertions(+), 0 deletions(-)
jump to
M nix/modules/default.nix → nix/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 {