mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
Add programs.tuicr for tuicr, a TUI for code review. The module writes settings to config.toml, links local themes into the theme directory, and makes the package nullable, so it can be installed elsewhere.
22 lines
407 B
Nix
22 lines
407 B
Nix
{
|
|
programs.tuicr = {
|
|
enable = true;
|
|
settings = { };
|
|
};
|
|
|
|
test.stubs.tuicr = {
|
|
name = "tuicr";
|
|
outPath = null;
|
|
buildScript = ''
|
|
mkdir -p $out/bin
|
|
touch $out/bin/tuicr
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists "home-files/.config/tuicr/config.toml"
|
|
assertPathNotExists "home-files/.config/tuicr/themes"
|
|
assertFileExists "home-path/bin/tuicr"
|
|
'';
|
|
}
|