all repos — searchix @ 7aea6aa210a8939ac208fb7540d1b46ba69a995f

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

feat: enable searching via program names for multi-program packages implements: https://todo.sr.ht/~alanpearce/searchix/6

Alan Pearce
commit

7aea6aa210a8939ac208fb7540d1b46ba69a995f

parent

b26ddba432f8bde78022d2fc8837f0ffb25448b1

1 file changed, 29 insertions(+), 1 deletion(-)

changed files
M defaults.tomldefaults.toml
@@ -101,6 +101,13 @@ Type = 'github'
Owner = 'LnL7' Repo = 'nix-darwin' +# Used to enable searching for programs in multi-program packages +[Importer.Sources.darwin.Programs] +# Enable searching for programs in multi-program packages +Enable = false +# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file +Attribute = '' + [Importer.Sources.home-manager] # Human-readable name of source for generating links Name = 'Home Manager'
@@ -134,6 +141,13 @@ Type = 'github'
Owner = 'nix-community' Repo = 'home-manager' +# Used to enable searching for programs in multi-program packages +[Importer.Sources.home-manager.Programs] +# Enable searching for programs in multi-program packages +Enable = false +# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file +Attribute = '' + [Importer.Sources.nixos] # Human-readable name of source for generating links Name = 'NixOS'
@@ -167,6 +181,13 @@ Type = 'github'
Owner = 'NixOS' Repo = 'nixpkgs' +# Used to enable searching for programs in multi-program packages +[Importer.Sources.nixos.Programs] +# Enable searching for programs in multi-program packages +Enable = false +# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file +Attribute = '' + [Importer.Sources.nixpkgs] # Human-readable name of source for generating links Name = 'Nix Packages'
@@ -189,7 +210,7 @@ Attribute = ''
# (Fetcher=channel) Sub-path of imported channel which contains the attribute above, e.g. release.nix ImportPath = '' # Abort import if it takes longer than this. -Timeout = '5m0s' +Timeout = '15m0s' # (Fetcher=channel) Path under ./result symlink to folder containing {options,packages}.json. OutputPath = 'packages.json.br'
@@ -199,3 +220,10 @@ # Currently only 'github' is supported.
Type = 'github' Owner = 'NixOS' Repo = 'nixpkgs' + +# Used to enable searching for programs in multi-program packages +[Importer.Sources.nixpkgs.Programs] +# Enable searching for programs in multi-program packages +Enable = true +# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file +Attribute = 'programs.sqlite'