From 8f93650fe4a39a41c20a47a17c3c8f7c49a9cb3e Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sun, 7 Apr 2019 17:51:41 -0400 Subject: [PATCH] nixos/pantheon: add warning when not using LightDM --- nixos/modules/services/x11/desktop-managers/pantheon.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index 69b0cdc986b..e81aea68ae9 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -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;