nixos/pantheon: add warning when not using LightDM

(cherry picked from commit 8f93650fe4)
This commit is contained in:
worldofpeace
2019-04-07 17:51:41 -04:00
committed by Linus Heckemann
parent c7de6984f5
commit 9db4cedcbf

View File

@@ -70,6 +70,12 @@ in
# Ensure lightdm is used when Pantheon is enabled
# Without it screen locking will be nonfunctional because of the use of lightlocker
warnings = optional (config.services.xserver.displayManager.lightdm.enable != true)
''
Using Pantheon without LightDM as a displayManager will break screenlocking from the UI.
'';
services.xserver.displayManager.lightdm.enable = mkDefault true;
services.xserver.displayManager.lightdm.greeters.gtk.enable = mkDefault true;