home-manager/tests/modules/programs/scmpuff/no-shell.nix

22 lines
499 B
Nix
Raw Normal View History

{ pkgs, ... }: {
config = {
programs = {
scmpuff = {
enable = true;
enableBashIntegration = false;
enableZshIntegration = false;
};
bash.enable = true;
zsh.enable = true;
};
2021-08-12 22:47:22 +02:00
nixpkgs.overlays =
[ (self: super: { zsh = pkgs.writeScriptBin "dummy" ""; }) ];
nmt.script = ''
2021-05-18 00:47:40 +02:00
assertFileNotRegex home-files/.zshrc '${pkgs.scmpuff} init -s'
assertFileNotRegex home-files/.bashrc '${pkgs.scmpuff} init -s'
'';
};
}