aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/tmux/disable-confirmation-prompt.nix
blob: 9c65ad6eee41b4f59d305a79bfe7bf73bd0a1237 (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
{ 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}
    '';
  };
}