Why Nostr? What is Njump?
2025-05-24 20:23:35
in reply to

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.```
Author Public Key
npub19676qfa73jxrtzddlnxkj3syuj8qswjvhe74pha9vx2s3m3k4vqqw0ln2g