Skip to content

Commit 49022fa

Browse files
committed
nix-search-tv: init module
1 parent 0698806 commit 49022fa

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

  • modules/home/programs/terminal/tools/nix-search-tv
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
let
8+
inherit (lib) mkIf;
9+
10+
cfg = config.khanelinix.programs.terminal.tools.nix-search-tv;
11+
in
12+
{
13+
options.khanelinix.programs.terminal.tools.nix-search-tv = {
14+
enable = lib.mkEnableOption "nix-search-tv";
15+
};
16+
17+
config = mkIf cfg.enable {
18+
programs.nix-search-tv = {
19+
enable = true;
20+
21+
settings = {
22+
indexes = [
23+
"nixpkgs"
24+
"home-manager"
25+
]
26+
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
27+
"nixos"
28+
]
29+
++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
30+
"nix-darwin"
31+
];
32+
};
33+
};
34+
};
35+
}

0 commit comments

Comments
 (0)