Add niri module

- An overridden `niri.service` is provided, so that systemd does not take
over autostart and try to start things *before* we have an XWayland server running.
- Somehow `wlsunset` is still not working, might need some investigation into why.
This commit is contained in:
Natsu Kagami 2025-01-16 04:23:55 +01:00
parent 704f1f1c79
commit 61382f4d32
Signed by: nki
GPG key ID: 55A032EB38B49ADB
7 changed files with 379 additions and 2 deletions

View file

@ -13,6 +13,9 @@ let
if which sway &>/dev/null
set -a CHOICES "sway"
end
if which niri-session &>/dev/null
set -a CHOICES "Niri"
end
if which startplasma-wayland &>/dev/null
set -a CHOICES "KDE Plasma"
end
@ -22,6 +25,8 @@ let
case "sway"
systemctl --user unset-environment NIXOS_OZONE_WL
exec sway
case "Niri"
exec niri-session
case "KDE Plasma"
exec ${pkgs.kdePackages.plasma-workspace}/libexec/plasma-dbus-run-session-if-needed startplasma-wayland
case '*'