all repos — searchix @ e8fbdf3bd12c8920a6e9bd84b34e787764b11eaf

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

feat(nixos-module): allow setting environment variables
Alan Pearce alan@alanpearce.eu
Tue, 11 Mar 2025 21:02:13 +0100
commit

e8fbdf3bd12c8920a6e9bd84b34e787764b11eaf

parent

78fc3e6cd43e6df90e17067fe0eb52b9badf9a75

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

jump to
M nix/modules/default.nixnix/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) {