phosh/lightdm: configure default xorg session

This commit is contained in:
2022-10-20 21:16:38 -07:00
parent 0fa602f1dd
commit 33110dc1d9

View File

@@ -78,6 +78,9 @@ in
} }
(mkIf cfg.useGreeter { (mkIf cfg.useGreeter {
services.xserver.enable = true; services.xserver.enable = true;
# NB: setting defaultSession has the critical side-effect that it lets org.freedesktop.AccountsService
# know that our user exists. this ensures lightdm succeeds when calling /org/freedesktop/AccountsServices ListCachedUsers
services.xserver.displayManager.defaultSession = "sm.puri.Phosh";
services.xserver.displayManager.lightdm.greeters.gtk.enable = false; # gtk greeter overrides our own? services.xserver.displayManager.lightdm.greeters.gtk.enable = false; # gtk greeter overrides our own?
services.xserver.displayManager.lightdm.greeter = { services.xserver.displayManager.lightdm.greeter = {
enable = true; enable = true;