2.home-manager/tests/modules/programs/nix-search-tv/basic-config.nix
Cool-Game-Dev b7ee8deefc programs/nix-search-tv: init
Create the programs/nix-search-tv module, with options to enable,
change settings, and television integration.

Co-authored-by: awwpotato <awwpotato@voidq.com>
2025-08-05 14:10:01 -05:00

39 lines
823 B
Nix

{ pkgs, ... }:
{
programs.nix-search-tv = {
enable = true;
settings = {
indexes = [
"home-manager"
"nixos"
"nixpkgs"
];
experimental = {
render_docs_indexed = {
nvf = "https://notashelf.github.io/nvf/options.html";
};
};
};
};
nmt.script = ''
assertFileExists home-files/.config/nix-search-tv/config.json
assertFileContent home-files/.config/nix-search-tv/config.json \
${pkgs.writeText "settings-expected" ''
{
"experimental": {
"render_docs_indexed": {
"nvf": "https://notashelf.github.io/nvf/options.html"
}
},
"indexes": [
"home-manager",
"nixos",
"nixpkgs"
]
}
''}
'';
}