nixos/homeConfig/modules/gui/config/shellHook.nix

5 lines
78 B
Nix

''
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi
''