aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/tmux/secure-socket-enabled.nix
blob: ca2de66310dba6fe378a06ed876d534905f7cbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    programs.tmux = {
      enable = true;
      secureSocket = true;
    };

    nmt.script = ''
      assertFileExists home-path/etc/profile.d/hm-session-vars.sh
      assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
        'export TMUX_TMPDIR="''${XDG_RUNTIME_DIR:-"/run/user/\$(id -u)"}"'
    '';
  };
}