From 967a4ba52ba3b9b65a40d5118cd533f9d240dab9 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 10 Mar 2025 15:41:19 +0100 Subject: [PATCH] nixos/xss-lock: remove startx warning This warning is based on a misconception: xss-lock, as most user services, just require access to the shell environment variables, which for `startx` have to be imported manually. --- nixos/modules/programs/xss-lock.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nixos/modules/programs/xss-lock.nix b/nixos/modules/programs/xss-lock.nix index 537bf60594e6..4aea57a1046f 100644 --- a/nixos/modules/programs/xss-lock.nix +++ b/nixos/modules/programs/xss-lock.nix @@ -49,10 +49,5 @@ 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" - ]; - }; }