about summary refs log tree commit diff stats
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/modules/default.nix2
-rw-r--r--nix/package.nix3
2 files changed, 4 insertions, 1 deletions
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" ];
diff --git a/nix/package.nix b/nix/package.nix
index 104e09f..3426235 100644
--- a/nix/package.nix
+++ b/nix/package.nix
@@ -31,10 +31,13 @@ buildGoApplication {
         ../searchix.go
         ../internal
         ../frontend
+        ../cmd
       ])
       (maybeMissing ../frontend/static/base.css);
   };
 
+  subPackages = [ "cmd/searchix-web" ];
+
   patchPhase = ''
     rm -f frontend/static/base.css
     cp ${css} frontend/static/base.css