nixos/pantheon: add warning when not using LightDM

This commit is contained in:
worldofpeace 2019-04-07 17:51:41 -04:00
parent d3d5c674ba
commit 8f93650fe4

View File

@ -73,6 +73,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;