From 12fb7ab7b0a88712a5429973c7e73838723f31f2 Mon Sep 17 00:00:00 2001 From: worble Date: Mon, 3 Feb 2025 16:43:57 +0000 Subject: [PATCH] add maliit keyboard to sddm --- configuration/kde.nix | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/configuration/kde.nix b/configuration/kde.nix index 730d737..ef6e9c7 100644 --- a/configuration/kde.nix +++ b/configuration/kde.nix @@ -1,5 +1,15 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: +let + compositorCmd = lib.concatStringsSep " " [ + "${lib.getBin pkgs.kdePackages.kwin}/bin/kwin_wayland" + "--no-global-shortcuts" + "--no-kactivities" + "--no-lockscreen" + "--locale1" + "--inputmethod ${pkgs.maliit-keyboard}/bin/maliit-keyboard" + ]; +in { services.xserver.enable = true; # optional @@ -7,8 +17,16 @@ # services.xserver.xkb.layout = "us"; # services.xserver.xkb.options = "eurosign:e,caps:escape"; - services.displayManager.sddm.enable = true; - services.displayManager.sddm.wayland.enable = true; + services.displayManager.sddm = { + enable = true; + wayland.enable = true; + wayland.compositor = "kwin"; + settings = { + General = { + CompositorCommand = compositorCmd; + }; + }; + }; services.desktopManager.plasma6.enable = true; # Specific fix for cursor in steam