aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/tmux/disable-confirmation-prompt.nix
blob: 82c53438b00c01d3b1e20d4423f748b791d16b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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}
    '';
  };
}