all repos — searchix @ 73185e4633d4f56ce8acdd3cc19f78faaa78bd2b

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

docs/running.md (view raw)

Running an instance

Requirements:

  • 400MiB disk space
  • <100MiB RAM

This repository (or its sourcehut mirror) is importable as a flake containing a NixOS module.

{
  inputs.searchix.url = "git+https://git.alanpearce.eu/searchix";
  # or
  inputs.searchix.url = "sourcehut:~alanpearce/searchix";

  outputs = { self, nixpkgs, searchix }: {
    nixosConfigurations.<hostname> = nixpkgs.lib.nixosSystem {
      modules = [
        searchix.modules.web
      ];
    };
  };
}

This will then expose the following schema:

services.searchix = {
  enable = true;
# user = "searchix";
# group = "searchix";
# homeDir = "/var/lib/searchix";
# settings = {
#   web = {
#     port = 51313;
#     listenAddress = "localhost";
#     baseURL = "http://localhost:51313";
#   };
# };
};

Where settings complies with NixOS RFC 42 (settings options); see the default values for reference.