split searchix configuration from role
1 file changed, 48 insertions(+), 0 deletions(-)
changed files
A system/settings/services/searchix.nix
@@ -0,0 +1,48 @@ +{ + inputs, + ... +}: +{ + imports = [ + inputs.searchix.nixosModules.web + ]; + + nixpkgs.overlays = [ + inputs.searchix.overlays.default + ]; + + services.searchix = { + enable = true; + settings = { + web = { + searchTimeout = "2s"; + gracefulShutdownTimeout = "2s"; + }; + + importer.sources = { + darwin = { + enable = true; + fetcher = "download"; + url = "https://alinnow.github.io/nix-options/darwin"; + }; + home-manager = { + enable = true; + fetcher = "download"; + url = "https://alinnow.github.io/nix-options/home-manager"; + }; + nixpkgs = { + enable = true; + fetcher = "channel-nixpkgs"; + channel = "nixos-unstable"; + timeout = "1h"; + }; + nixos = { + enable = true; + fetcher = "channel-nixpkgs"; + channel = "nixos-unstable"; + }; + nur.enable = true; + }; + }; + }; +}