From 7f0158313d0042d406c9d586ea58fc0862aaa3b6 Mon Sep 17 00:00:00 2001 From: Preston Hunt Date: Fri, 26 Apr 2024 18:30:08 -0700 Subject: [PATCH] nixos/xss-lock: add warning for startx --- nixos/modules/programs/xss-lock.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/programs/xss-lock.nix b/nixos/modules/programs/xss-lock.nix index 1bb73905599f..7a556e41061c 100644 --- a/nixos/modules/programs/xss-lock.nix +++ b/nixos/modules/programs/xss-lock.nix @@ -42,5 +42,10 @@ in ]); serviceConfig.Restart = "always"; }; + + warnings = lib.mkIf (config.services.xserver.displayManager.startx.enable) [ + "xss-lock service only works if a displayManager is set; it doesn't work when services.xserver.displayManager.startx.enable = true" + ]; + }; }