diff --git a/home/fish/fish.nix b/home/fish/fish.nix index 3d6e8bd..6cf05e9 100644 --- a/home/fish/fish.nix +++ b/home/fish/fish.nix @@ -22,6 +22,7 @@ let case "sway" exec sway case "KDE Plasma" + export NIXOS_OZONE_WL=1 exec dbus-run-session startplasma-wayland case '*' exec fish -i diff --git a/home/modules/linux/graphical/wayland.nix b/home/modules/linux/graphical/wayland.nix index 6e2c648..0fdcdb6 100644 --- a/home/modules/linux/graphical/wayland.nix +++ b/home/modules/linux/graphical/wayland.nix @@ -45,10 +45,26 @@ let ''; }; }; + + plasmaModule = { pkgs, ... }: { + home.packages = with pkgs.kdePackages; [ + discover + kmail + akonadi + kdepim-runtime + kmail-account-wizard + akonadi-import-wizard + ]; + # Not working yet, see #316784 + xdg.configFile."plasma-workspace/env/wayland.sh".source = pkgs.writeScript "plasma-wayland-env.sh" '' + export NIXOS_OZONE_WL=1 + ''; + xdg.dataFile."dbus-1/services/org.freedesktop.Notifications.service".source = "${pkgs.kdePackages.plasma-workspace}/share/dbus-1/services/org.kde.plasma.Notifications.service"; + }; in with lib; { - imports = [ notificationModule ]; + imports = [ notificationModule plasmaModule ]; config = mkIf (config.linux.graphical.type == "wayland") { # Additional packages home.packages = with pkgs; [