Enable some kde specifics
This commit is contained in:
parent
3b78843f34
commit
2bbbf47ce2
|
@ -22,6 +22,7 @@ let
|
||||||
case "sway"
|
case "sway"
|
||||||
exec sway
|
exec sway
|
||||||
case "KDE Plasma"
|
case "KDE Plasma"
|
||||||
|
export NIXOS_OZONE_WL=1
|
||||||
exec dbus-run-session startplasma-wayland
|
exec dbus-run-session startplasma-wayland
|
||||||
case '*'
|
case '*'
|
||||||
exec fish -i
|
exec fish -i
|
||||||
|
|
|
@ -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
|
in
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
imports = [ notificationModule ];
|
imports = [ notificationModule plasmaModule ];
|
||||||
config = mkIf (config.linux.graphical.type == "wayland") {
|
config = mkIf (config.linux.graphical.type == "wayland") {
|
||||||
# Additional packages
|
# Additional packages
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue