Skip to content

Commit

Permalink
nixos/pantheon: add warning when not using LightDM
Browse files Browse the repository at this point in the history
(cherry picked from commit 8f93650)
  • Loading branch information
worldofpeace authored and lheckemann committed Apr 10, 2019
1 parent c7de698 commit 9db4ced
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/modules/services/x11/desktop-managers/pantheon.nix
Expand Up @@ -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;

Expand Down

0 comments on commit 9db4ced

Please sign in to comment.