refactor(sway): drop the dead tty1 Sway autostart
greetd now owns tty1 and launches the Sway session, so the zsh initContent that exec'd sway on tty1 login can never fire. Remove it (and the now-unused lib arg), and refresh the module header (login is via the greeter; host list MBP/T400/Mac Pro, no longer "X1"). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
# Graphical desktop layer: GUI apps, Wayland session env, cursor theme, and the
|
# Graphical desktop layer: GUI apps, Wayland session env, and cursor theme.
|
||||||
# tty1 Sway autostart. Imported only on hosts that run Sway (MBP, X1); never
|
# Imported only on hosts that run Sway (MBP, T400, Mac Pro); never pulled onto
|
||||||
# pulled onto the headless WSL host.
|
# the headless WSL host. Login (and the Sway session launch) is handled by the
|
||||||
{ pkgs, lib, ... }:
|
# greetd/ReGreet greeter -- see ../swaywm.nix -- so there is no tty1 autostart.
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./sway.nix
|
./sway.nix
|
||||||
@@ -29,11 +30,4 @@
|
|||||||
name = "Adwaita";
|
name = "Adwaita";
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Start Sway automatically on the first virtual terminal.
|
|
||||||
programs.zsh.initContent = lib.mkOrder 1500 ''
|
|
||||||
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
|
||||||
exec sway
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user