home-manager/tests/modules/programs/tmux/secure-socket-enabled.nix

19 lines
379 B
Nix
Raw Normal View History

2019-04-04 22:04:24 +00:00
{ 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)"}"'
2019-04-04 22:04:24 +00:00
'';
};
}