fix(shoukei): restore tuigreet login, autologin bypassed the lock screen

greetd ran the niri session directly, so exiting the session (e.g.
logout from the lock screen) made greetd immediately restart the
desktop with no authentication.
This commit is contained in:
Ryan Yin
2026-08-30 21:47:57 +08:00
parent 776021562e
commit 099752e89f
+3 -3
View File
@@ -10,9 +10,9 @@
nixos-apple-silicon.nixosModules.default nixos-apple-silicon.nixosModules.default
]; ];
# NOTE:macbook do not have a tpm2 device for luks auto unlock # NOTE: do NOT autologin here (a bare session command = greetd restarts the desktop
# we have to enter the luks passphrase on boot, so remove login manager here to reduce the pain. # without any authentication whenever the session exits, e.g. logout from the lock
services.greetd.settings.default_session.command = lib.mkForce "$HOME/.wayland-session"; # screen would bypass it entirely). Keep tuigreet from modules/nixos/desktop.nix.
zramSwap.memoryPercent = lib.mkForce 75; zramSwap.memoryPercent = lib.mkForce 75;