[Desktop/Plasma] Move plasma-specific conf into a dedicated file

This commit is contained in:
Antoine Viallon 2022-04-04 20:09:44 +02:00
parent 2d2c8d4ce4
commit 5ae84ffe56
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 64 additions and 52 deletions

59
desktop/plasma.nix Normal file
View file

@ -0,0 +1,59 @@
{config, pkgs, lib, ...}:
with lib;
let
cfg = config.aviallon.desktop;
in {
config = mkIf cfg.enable {
# Enable the Plasma 5 Desktop Environment.
services.xserver.desktopManager.plasma5 = {
enable = true;
runUsingSystemd = true;
useQtScaling = true;
supportDDC = true;
};
systemd.tmpfiles.rules = mkAfter [
"e ${config.users.users.sddm.home}/.cache/sddm-greeter/qmlcache/ - - - 0"
"x ${config.users.users.sddm.home}/.cache"
];
# Prevents blinking cursor
services.xserver.displayManager.sddm = {
enable = true;
settings = {
Theme = {
CursorTheme = "breeze_cursors";
};
X11 = {
MinimumVT = mkOverride 50 1;
};
};
};
environment.systemPackages = with pkgs; with libsForQt5; [
skanlite
packagekit-qt
discover
akonadi
kmail
korganizer
dolphin
kio-fuse
konsole
kate
yakuake
pinentry-qt
plasma-pa
ark
];
xdg.portal = {
enable = mkDefault true;
gtkUsePortal = mkDefault true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
};
};
}