From 1b249f3de5310b88a10235903feacdef12fe078b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 20 May 2024 20:37:16 +0200 Subject: [PATCH] Configure `sddm` to use `kwin` --- lib/modules/sddm.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/modules/sddm.nix b/lib/modules/sddm.nix index fbd7292..e70f31a 100644 --- a/lib/modules/sddm.nix +++ b/lib/modules/sddm.nix @@ -2,13 +2,18 @@ config = { services.displayManager.sddm = lib.mkIf config.services.displayManager.sddm.wayland.enable { settings.General.GreeterEnvironment = ( - lib.concatStringsSep " " ( - let - localeConf = config.i18n.extraLocaleSettings; - in - builtins.map - (name: "${name}=${localeConf.${name}}") - (builtins.attrNames localeConf))); + lib.concatStringsSep " " (( + let + localeConf = config.i18n.extraLocaleSettings; + in + builtins.map + (name: "${name}=${localeConf.${name}}") + (builtins.attrNames localeConf) + ) ++ ( + lib.optional config.services.desktopManager.plasma6.enable + "QT_WAYLAND_SHELL_INTEGRATION=layer-shell"))); + + wayland.compositor = lib.mkIf config.services.displayManager.sddm.wayland.enable "kwin"; }; }; }