all repos — searchix @ e9eed3ddc4229db707cccb30beddde15044eff16

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

refactor: split server cmd and module It should now be possible to run the server from inside another go application by importing the main module and running its Start() function

Alan Pearce
commit

e9eed3ddc4229db707cccb30beddde15044eff16

parent

2c1491de56d0c3e2f4cb0b0c1e33035510f72fc5

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M nix/modules/default.nixnix/modules/default.nix
@@ -194,7 +194,7 @@ description = "Searchix Nix option search";
wantedBy = [ "multi-user.target" ]; path = with pkgs; [ nix ]; serviceConfig = defaultServiceConfig // { - ExecStart = "${package}/bin/searchix --config ${(settingsFormat.generate "searchix-config.toml" cfg.settings)}"; + ExecStart = "${package}/bin/searchix-web --config ${(settingsFormat.generate "searchix-config.toml" cfg.settings)}"; } // lib.optionalAttrs (cfg.settings.web.port < 1024) { AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ]; CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];