From 9db4cedcbf2ae7348e576ef64cb65b2cd1077098 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 (cherry picked from commit 8f93650fe4a39a41c20a47a17c3c8f7c49a9cb3e) --- 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 fbd1be8599f9..2c65fa5af351 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -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;