1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/programs/pay-respects/integration-disabled.nix
Robert Helgesson 7a3f0b3b8d
tests: rework derivation stubbing
Instead of having to manually stub packages that should not be
downloaded we instead automatically stub all packages (except a small
list of whitelisted ones). Tests can re-introduce the real package by
using the `realPkgs` module argument.
2025-02-04 23:58:20 +01:00

20 lines
711 B
Nix

{
programs = {
pay-respects.enable = true;
pay-respects.enableBashIntegration = false;
pay-respects.enableFishIntegration = false;
pay-respects.enableZshIntegration = false;
pay-respects.enableNushellIntegration = false;
bash.enable = true;
zsh.enable = true;
fish.enable = true;
nushell.enable = true;
};
nmt.script = ''
assertFileNotRegex home-files/.bashrc '@pay-respects@/bin/pay-respects'
assertFileNotRegex home-files/.zshrc '@pay-respects@/bin/pay-respects'
assertFileNotRegex home-files/.config/fish/config.fish '@pay-respects@/bin/pay-respects'
assertFileNotRegex home-files/.config/nushell/config.nu '@pay-respects@/bin/pay-respects'
'';
}