From 7aea6aa210a8939ac208fb7540d1b46ba69a995f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 15 Jan 2025 22:25:33 +0100 Subject: feat: enable searching via program names for multi-program packages implements: https://todo.sr.ht/~alanpearce/searchix/6 --- defaults.toml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'defaults.toml') diff --git a/defaults.toml b/defaults.toml index 4f95929..bfd2efa 100644 --- a/defaults.toml +++ b/defaults.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 @@ OutputPath = 'packages.json.br' 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' -- cgit 1.4.1