home-manager/tests/modules/programs/tmux/disable-confirmation-prompt.nix
2020-04-06 12:51:11 +02:00

27 lines
520 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.tmux = {
enable = true;
disableConfirmationPrompt = true;
};
nixpkgs.overlays = [
(self: super: {
tmuxPlugins = super.tmuxPlugins // {
sensible = super.tmuxPlugins.sensible // { rtp = "@sensible_rtp@"; };
};
})
];
nmt.script = ''
assertFileExists home-files/.tmux.conf
assertFileContent home-files/.tmux.conf \
${./disable-confirmation-prompt.conf}
'';
};
}