From 099752e89faf9fb8472ce576bbc1273335a71392 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 30 Aug 2026 21:47:57 +0800 Subject: [PATCH] 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. --- hosts/12kingdoms-shoukei/apple-silicon.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/12kingdoms-shoukei/apple-silicon.nix b/hosts/12kingdoms-shoukei/apple-silicon.nix index 92a13217..b837e993 100644 --- a/hosts/12kingdoms-shoukei/apple-silicon.nix +++ b/hosts/12kingdoms-shoukei/apple-silicon.nix @@ -10,9 +10,9 @@ nixos-apple-silicon.nixosModules.default ]; - # NOTE:macbook do not have a tpm2 device for luks auto unlock - # we have to enter the luks passphrase on boot, so remove login manager here to reduce the pain. - services.greetd.settings.default_session.command = lib.mkForce "$HOME/.wayland-session"; + # NOTE: do NOT autologin here (a bare session command = greetd restarts the desktop + # without any authentication whenever the session exits, e.g. logout from the lock + # screen would bypass it entirely). Keep tuigreet from modules/nixos/desktop.nix. zramSwap.memoryPercent = lib.mkForce 75;