Compare commits

...

2 commits

Author SHA1 Message Date
49262360ab hosts: home: mousqueton: enable 'tmux-resurrect'
Some checks failed
ci/woodpecker/push/check Pipeline failed
2025-02-25 13:39:46 +00:00
5bc4b4d33f home: tmux: add 'enableResurrect'
To be used on the cloudtop with its frequent reboots.
2025-02-25 13:38:18 +00:00
2 changed files with 12 additions and 0 deletions

View file

@ -15,6 +15,9 @@
# I use scripts that use the passthrough sequence often on this host
enablePassthrough = true;
# Frequent reboots mean that session persistence can be handy
enableResurrect = true;
terminalFeatures = {
# HTerm uses `xterm-256color` as its `$TERM`, so use that here
xterm-256color = { };

View file

@ -20,6 +20,8 @@ in
enablePassthrough = mkEnableOption "tmux DCS passthrough sequence";
enableResurrect = mkEnableOption "tmux-resurrect plugin";
terminalFeatures = mkOption {
type = with types; attrsOf (submodule {
options = {
@ -79,6 +81,13 @@ in
set -g status-right '#{prefix_highlight} %a %Y-%m-%d %H:%M'
'';
}
# Resurrect sessions
(lib.optionalAttrs cfg.enableResurrect {
plugin = resurrect;
extraConfig = ''
set -g @resurrect-dir '${config.xdg.stateHome}/tmux/resurrect'
'';
})
];
extraConfig = ''