Enable some kde specifics

This commit is contained in:
Natsu Kagami 2024-06-03 13:30:42 +02:00
parent 3b78843f34
commit 2bbbf47ce2
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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; [