programs.tmux: implement secureSocket
This commit is contained in:
parent
995fa3af36
commit
652c694244
4 changed files with 30 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ in
|
|||
++ optional cfg.tmuxinator.enable pkgs.tmuxinator
|
||||
++ optional cfg.tmuxp.enable pkgs.tmuxp;
|
||||
|
||||
home.file.".tmux.conf".text = tmuxConf;
|
||||
home.file.".tmux.conf".text = tmuxConf;
|
||||
}
|
||||
|
||||
(mkIf cfg.sensibleOnTop {
|
||||
|
|
@ -264,6 +264,12 @@ in
|
|||
'';
|
||||
})
|
||||
|
||||
(mkIf cfg.secureSocket {
|
||||
home.sessionVariables = {
|
||||
TMUX_TMPDIR = ''''${XDG_RUNTIME_DIR:-"/run/user/\$(id -u)"}'';
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg.plugins != []) {
|
||||
assertions = [(
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue