about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarek Fajkus <marek.faj@gmail.com>2024-05-12 19:53:52 +0200
committerGitHub <noreply@github.com>2024-05-12 19:53:52 +0200
commitcf1e14e8a920b63fa3cacbd6b5b740bfd2a73dfc (patch)
tree4d3598d5d48ce3c91ea19f3af5cae1739a18cd0a
parentef52c6f917028abccaf4325ff3517a39459e2a17 (diff)
parent7f0158313d0042d406c9d586ea58fc0862aaa3b6 (diff)
Merge pull request #310880 from presto8/warn-xss-lock
nixos/xss-lock: add warning for startx
-rw-r--r--nixos/modules/programs/xss-lock.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/programs/xss-lock.nix b/nixos/modules/programs/xss-lock.nix
index 1bb73905599f8..7a556e41061c7 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"
+    ];
+
   };
 }