Create the programs/nix-search-tv module, with options to enable, change settings, and television integration. Co-authored-by: awwpotato <awwpotato@voidq.com>
39 lines
823 B
Nix
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"
|
|
]
|
|
}
|
|
''}
|
|
'';
|
|
}
|