Squashed commit of the following:

commit 19ed08c375be6d6a0b344ab1b9d3f76f3c29514b
Author: João Porta <jpedro.porta@gmail.com>
Date:   Fri Jul 17 23:12:12 2026 +0000

    zsh

commit 19df08188fa07b40b9b28a4665b015c4fa525dff
Merge: 577d753 4e4cc38
Author: João Porta <jpedro.porta@gmail.com>
Date:   Thu Jul 16 22:29:29 2026 +0000

    Merge remote-tracking branch 'refs/remotes/origin/tailscale' into tailscale

commit 577d753475be867146ebcacc79330a1e227043a5
Author: João Porta <jpedro.porta@gmail.com>
Date:   Thu Jul 16 15:29:53 2026 +0000

    tailscale

commit 4e4cc381b9e333592184490ea9f749fe87ebbbb9
Author: João Porta <jpedro.porta@gmail.com>
Date:   Thu Jul 16 15:29:53 2026 +0000

    tailscale
This commit is contained in:
2026-07-17 23:15:07 +00:00
parent cdbad8910c
commit 726681e5c2
5 changed files with 180 additions and 17 deletions
+23 -9
View File
@@ -54,17 +54,31 @@
rot0 = "wlr-randr --output HDMI-A-1 --transform normal";
rotl = "wlr-randr --output HDMI-A-1 --transform 270";
rot180 = "wlr-randr --output HDMI-A-1 --transform 180";
# Tailscale shortcuts (writter-deck only really needs these, but
# they don't hurt anyone else either). `ts` is the wrapper that
# points the CLI at the user-scope socket from the tailscale-daemon
# module.
ts = "tailscale --socket=/tmp/ts-$UID/tailscaled.sock";
ts-status = "ts status";
ts-ping = "ts ping -c 3 jpporta-nixos";
};
initContent = ''
${lib.optionalString config.custom.zsh.fastfetch "fastfetch"}
# Auto-rotate screen to portrait when running inside cage/foot
# on the writer-deck. Skipped over SSH and other non-Wayland sessions.
if [ -n "$WAYLAND_DISPLAY" ] && [ -n "$CAGE_RUNNING" ] && [ "$ROTATED" != "1" ]; then
export ROTATED=1
wlr-randr --output HDMI-A-1 --transform 90 >/dev/null 2>&1
fi
'';
initContent = lib.mkMerge [
(lib.mkOrder 700 ''
# Home Manager normally defines ZSH in .zshenv. Keep it available
# when .zshrc is sourced directly as well.
export ZSH="${config.programs.zsh.oh-my-zsh.package}/share/oh-my-zsh"
'')
(lib.mkOrder 1000 ''
${lib.optionalString config.custom.zsh.fastfetch "fastfetch"}
# Auto-rotate screen to portrait when running inside cage/foot
# on the writer-deck. Skipped over SSH and other non-Wayland sessions.
if [ -n "$WAYLAND_DISPLAY" ] && [ -n "$CAGE_RUNNING" ] && [ "$ROTATED" != "1" ]; then
export ROTATED=1
wlr-randr --output HDMI-A-1 --transform 90 >/dev/null 2>&1
fi
'')
];
};
};
}