From 48d7f56a3e114a6cf09c3ec77d1bda3b78e92285 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 21 Oct 2023 21:25:14 +0200 Subject: [PATCH] use greetd console display manager --- common.nix | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/common.nix b/common.nix index f1a5b2a..a7e4b52 100644 --- a/common.nix +++ b/common.nix @@ -123,25 +123,20 @@ in # allow firmware updates services.fwupd.enable = true; - # X11 settings - services.xserver = { - libinput.enable = true; - upscaleDefaultCursor = false; + # EurKey layout + services.xserver.layout = "eu"; - # Configure keymap in X11 - layout = "eu"; - xkbVariant = ""; + # enable the KDE Plasma Desktop Environment + services.xserver.desktopManager.plasma5.enable = true; - # Enable the KDE Plasma Desktop Environment. - desktopManager.plasma5.enable = true; - desktopManager.plasma5.runUsingSystemd = true; - desktopManager.plasma5.phononBackend = "vlc"; - - # use SDDM and Plasma Wayland + # greetd console display manager + services.greetd = { enable = true; - displayManager.sddm.enable = true; - displayManager.sddm.wayland.enable = true; - displayManager.defaultSession = "plasmawayland"; + settings = { + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd '${pkgs.plasma-workspace}/libexec/plasma-dbus-run-session-if-needed ${pkgs.plasma-workspace}/bin/startplasma-wayland'"; + }; + }; }; # enable sound with PipeWire