nixos/sddm: don't set kwin related config if Wayland isn't enabled

This commit is contained in:
K900 2024-08-27 20:14:23 +03:00
parent 0dfb94dbdf
commit 094e80f6ff

View File

@ -43,7 +43,7 @@ let
DefaultSession = optionalString (config.services.displayManager.defaultSession != null) "${config.services.displayManager.defaultSession}.desktop";
DisplayServer = if cfg.wayland.enable then "wayland" else "x11";
} // optionalAttrs (cfg.wayland.compositor == "kwin") {
} // optionalAttrs (cfg.wayland.enable && cfg.wayland.compositor == "kwin") {
GreeterEnvironment = "QT_WAYLAND_SHELL_INTEGRATION=layer-shell";
InputMethod = ""; # needed if we are using --inputmethod with kwin
};