feat(nixos-module): allow setting environment variables
Alan Pearce alan@alanpearce.eu
Tue, 11 Mar 2025 21:02:13 +0100
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M nix/modules/default.nix → nix/modules/default.nix
@@ -210,6 +210,7 @@ systemd.services.searchix = { description = "Searchix Nix option search"; wantedBy = [ "multi-user.target" ]; path = with pkgs; [ nix ]; + inherit (cfg) environment; serviceConfig = defaultServiceConfig // { ExecStart = "${package}/bin/searchix-web --config ${(settingsFormat.generate "searchix-config.toml" cfg.settings)}"; } // lib.optionalAttrs (cfg.settings.web.port < 1024) {