This commit is contained in:
Harivansh Rathi 2026-03-13 12:49:57 -04:00
parent 32f8cc2a28
commit f01ee2d84b
6 changed files with 58 additions and 9 deletions

View file

@ -1,4 +1,16 @@
{...}: {
{lib, ...}: {
home.activation.removeLegacyTmuxLink = lib.hm.dag.entryBefore ["checkLinkTargets"] ''
path="$HOME/.config/tmux/tmux.conf"
if [ -L "$path" ]; then
target="$(readlink "$path")"
case "$target" in
../../dots/tmux/*|dots/tmux/*|"$HOME"/dots/tmux/*)
rm -f "$path"
;;
esac
fi
'';
programs.tmux = {
enable = true;
extraConfig = ''