Merge pull request #310880 from presto8/warn-xss-lock

nixos/xss-lock: add warning for startx

authored by Marek Fajkus and committed by GitHub cf1e14e8 ef52c6f9

+5
+5
nixos/modules/programs/xss-lock.nix
··· 42 ]); 43 serviceConfig.Restart = "always"; 44 }; 45 }; 46 }
··· 42 ]); 43 serviceConfig.Restart = "always"; 44 }; 45 + 46 + warnings = lib.mkIf (config.services.xserver.displayManager.startx.enable) [ 47 + "xss-lock service only works if a displayManager is set; it doesn't work when services.xserver.displayManager.startx.enable = true" 48 + ]; 49 + 50 }; 51 }