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 20:47:22 +00:00
nixpkgs.overlays =
[ (self: super: { zsh = pkgs.writeScriptBin "dummy" ""; }) ];
nmt.script = ''
2021-05-17 22:47:40 +00:00
assertFileNotRegex home-files/.zshrc '${pkgs.scmpuff} init -s'
assertFileNotRegex home-files/.bashrc '${pkgs.scmpuff} init -s'
'';
};
}