tmux: use configured fqdn instead of hostname -f
All checks were successful
flake / flake (push) Successful in 2m20s

This commit is contained in:
Jake Hillion 2024-12-07 18:17:04 +00:00
parent e75d676e73
commit 1efa9b26eb
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ bind -n C-k clear-history
# Status pane
set -g status-right-length 100
set -g status-right "#(uname -r) • #(hostname -f | sed 's/\.ts\.hillion\.co\.uk//g') • %d-%b-%y %H:%M"
set -g status-right "#(uname -r) • #(echo @FQDN | sed 's/\.ts\.hillion\.co\.uk//g') • %d-%b-%y %H:%M"
# New panes in the same directory
bind '"' split-window -c "#{pane_current_path}"

View File

@ -11,7 +11,7 @@ in
config = lib.mkIf cfg.enable {
home-manager.users.jake.programs.tmux = {
enable = true;
extraConfig = lib.readFile ./.tmux.conf;
extraConfig = builtins.replaceStrings [ "@FQDN" ] [ config.networking.fqdn ] (builtins.readFile ./.tmux.conf);
};
};
}