Linux Is Best on Nostr: Small change to enable xWayland support. This prevents maliit-keyboard from crashing. ...
Small change to enable xWayland support. This prevents maliit-keyboard from crashing.
```
# ----------------------------------------
# 🖼️ Graphical Desktop.
# ----------------------------------------
# 🖼️ Enable KDE Plasma (Graphical Desktop).
# This enables the KDE Plasma desktop — a modern, user-friendly graphical interface.
# It also enables GDM (the login screen), which is required for graphical logins.
# Without it, you won't see a login screen or access KDE.
services.desktopManager.plasma6.enable = true; # Enables the KDE Plasma desktop environment.
services.xserver.displayManager.gdm.wayland = true; # Enable Wayland (modern graphical system).
programs.xwayland.enable = true; # xWayland support for x11 apps
services.displayManager.sddm.enable = false; # Required Disable SDDM - Disabled because it does not work with a Virtual Keyboard.
services.xserver.displayManager.gdm.enable = true; # Required for graphical login. - GDM (Grnome Display Manager) works with VM Keyboard and can be used with KDE.
# ⌨️ This configuration enables the virtual keyboard.
# In addition to supporting accessibility needs, it can also be helpful if your Bluetooth keyboard fails to connect before logging in.
# Start Maliit virtual keyboard after graphical.target is reached.
systemd.services.maliit-keyboard = {
description = "Launch Maliit virtual keyboard.";
wantedBy = [ "graphical.target" ]; # Start after graphical.target (post-login screen).
serviceConfig.ExecStart = "${pkgs.maliit-keyboard}/bin/maliit-keyboard"; # Start Maliit keyboard.
serviceConfig.Restart = "always"; # Ensure it restarts if it crashes.
};
# 🧑💻 Keyboard Layout (X11 only).
# Sets the keyboard layout for X11. Wayland layouts are handled through KDE settings.
# Change the layout code below if you're using something other than US QWERTY.
services.xserver.xkb = {
layout = "us"; # ⬅️ Change this to your layout (e.g., "de", "fr", "uk").
variant = ""; # Optional: Variant for more specific layouts.
};
# ----------------------------------------
# 🖱️ Touchpad & Input Device Support.
# ----------------------------------------
# This enables the libinput driver for touchpads and other input devices.
# KDE handles most input automatically under Wayland, but enabling this ensures
# proper support across both X11 and Wayland — especially for touchpads and touchscreens.
services.libinput.enable = true; # Recommended for reliable input device support.```
Published at
2025-05-24 20:23:35Event JSON
{
"id": "df6d99a06d8bc9d125cdea3886df47eaac2a2a69b80b9a6586977ea499e21739",
"pubkey": "2ebda027be8c8c3589adfccd694604e48e083a4cbe7d50dfa5619508ee36ab00",
"created_at": 1748118215,
"kind": 1,
"tags": [
[
"e",
"9d2c59f3118714c2a7278b2437ef6e7013f97edfa3794b893cf27aed90c7daec",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mk.absturztau.be/notes/a868rgy8gh8p01za",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Small change to enable xWayland support. This prevents maliit-keyboard from crashing. \n\n```\n# ----------------------------------------\n# 🖼️ Graphical Desktop.\n# ----------------------------------------\n\n# 🖼️ Enable KDE Plasma (Graphical Desktop).\n# This enables the KDE Plasma desktop — a modern, user-friendly graphical interface.\n# It also enables GDM (the login screen), which is required for graphical logins.\n# Without it, you won't see a login screen or access KDE.\n\n services.desktopManager.plasma6.enable = true; # Enables the KDE Plasma desktop environment.\n services.xserver.displayManager.gdm.wayland = true; # Enable Wayland (modern graphical system).\n programs.xwayland.enable = true; # xWayland support for x11 apps\n services.displayManager.sddm.enable = false; # Required Disable SDDM - Disabled because it does not work with a Virtual Keyboard.\n services.xserver.displayManager.gdm.enable = true; # Required for graphical login. - GDM (Grnome Display Manager) works with VM Keyboard and can be used with KDE.\n\n# ⌨️ This configuration enables the virtual keyboard.\n# In addition to supporting accessibility needs, it can also be helpful if your Bluetooth keyboard fails to connect before logging in.\n\n# Start Maliit virtual keyboard after graphical.target is reached.\nsystemd.services.maliit-keyboard = {\n description = \"Launch Maliit virtual keyboard.\";\n wantedBy = [ \"graphical.target\" ]; # Start after graphical.target (post-login screen).\n serviceConfig.ExecStart = \"${pkgs.maliit-keyboard}/bin/maliit-keyboard\"; # Start Maliit keyboard.\n serviceConfig.Restart = \"always\"; # Ensure it restarts if it crashes.\n};\n\n\n# 🧑💻 Keyboard Layout (X11 only).\n# Sets the keyboard layout for X11. Wayland layouts are handled through KDE settings.\n# Change the layout code below if you're using something other than US QWERTY.\n services.xserver.xkb = {\n layout = \"us\"; # ⬅️ Change this to your layout (e.g., \"de\", \"fr\", \"uk\").\n variant = \"\"; # Optional: Variant for more specific layouts.\n };\n\n# ----------------------------------------\n# 🖱️ Touchpad \u0026 Input Device Support.\n# ----------------------------------------\n# This enables the libinput driver for touchpads and other input devices.\n# KDE handles most input automatically under Wayland, but enabling this ensures\n# proper support across both X11 and Wayland — especially for touchpads and touchscreens.\n services.libinput.enable = true; # Recommended for reliable input device support.```",
"sig": "6feacf313a49f75541ae8e2951b1e489911ab8329bc2e52144f381e3b624c2e3755e2b1071b20916753b4087331c947851fd91a8f32ec0d23d80b50a3fc33e3c"
}