1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-03 16:39:46 +01:00
home-manager/tests/modules/programs/tmux/disable-confirmation-prompt.nix

29 lines
475 B
Nix
Raw Normal View History

2019-06-04 13:21:20 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
substituteExpected = path: pkgs.substituteAll {
src = path;
sensible_rtp = pkgs.tmuxPlugins.sensible.rtp;
};
in
{
config = {
programs.tmux = {
enable = true;
disableConfirmationPrompt = true;
};
nmt.script = ''
assertFileExists home-files/.tmux.conf
assertFileContent home-files/.tmux.conf \
${substituteExpected ./disable-confirmation-prompt.conf}
'';
};
}