From 834c7095cc630d9288a367933fe519e821da4f25 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 6 Dec 2023 21:33:50 -0300 Subject: [PATCH] sddm on wayland! --- hosts/desktops/common/services.nix | 34 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/hosts/desktops/common/services.nix b/hosts/desktops/common/services.nix index d3266f3..53c6ef8 100644 --- a/hosts/desktops/common/services.nix +++ b/hosts/desktops/common/services.nix @@ -23,26 +23,32 @@ in { }; xserver = { enable = true; - autorun = false; - layout = "us"; - xkbVariant = "altgr-intl"; + xkb = { + layout = "us"; + variant = "altgr-intl"; + }; exportConfiguration = true; excludePackages = (with pkgs; [ xterm ]); - displayManager.startx.enable = true; - desktopManager.plasma5.enable = true; - }; - greetd = { - enable = true; - settings = { - default_session.command = '' - ${pkgs.greetd.tuigreet}/bin/tuigreet --remember --user-menu --asterisks --time --greeting "Welcome to NixOS" --cmd ${plasma}/bin/plasma''; - initial_session = { - command = "${plasma}/bin/plasma"; - user = "user"; + displayManager = { + defaultSession = "plasmawayland"; + sddm = { + enable = true; + wayland = { + enable = true; + compositorCommand = + "${pkgs.kwin}/bin/kwin_wayland --no-global-shortcuts --no-lockscreen --locale1"; + }; + settings.General = { + GreeterEnvironment = + "QT_PLUGIN_PATH=${pkgs.plasma5Packages.layer-shell-qt}/${pkgs.plasma5Packages.qtbase.qtPluginPrefix},QT_WAYLAND_SHELL_INTEGRATION=layer-shell,XKB_DEFAULT_KEYMAP=en"; + InputMethod = ""; + }; }; }; + desktopManager.plasma5.enable = true; }; }; + xdg.portal = { enable = true; xdgOpenUsePortal = true;