From e9eed3ddc4229db707cccb30beddde15044eff16 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 24 May 2024 18:31:56 +0200 Subject: 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 --- nix/modules/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nix/modules/default.nix') diff --git a/nix/modules/default.nix b/nix/modules/default.nix index 509a372..acfa7aa 100644 --- a/nix/modules/default.nix +++ b/nix/modules/default.nix @@ -194,7 +194,7 @@ in 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" ]; -- cgit 1.4.1