puter/class/desktop/plasma.nix

36 lines
704 B
Nix
Raw Normal View History

2024-04-04 19:05:02 +00:00
{
lib,
pkgs,
...
}: {
services = {
2024-03-08 21:46:46 +00:00
desktopManager.plasma6.enable = true;
2024-04-13 18:41:18 +00:00
displayManager.sddm = {
2024-04-04 19:05:02 +00:00
enable = true;
2024-04-13 18:41:18 +00:00
wayland.enable = true;
2024-02-04 20:51:11 +00:00
};
};
environment = {
2024-04-04 19:05:02 +00:00
systemPackages = with pkgs.kdePackages; [discover kate];
2024-02-04 20:51:11 +00:00
sessionVariables = {
2024-03-08 21:46:46 +00:00
SUDO_ASKPASS = pkgs.writeShellScript "kdialogaskpass" ''
2024-04-04 19:05:02 +00:00
exec ${lib.getExe' pkgs.kdialog "kdialog"} --password Askpass
2024-02-04 20:51:11 +00:00
'';
2024-03-08 21:46:46 +00:00
MOZ_USE_XINPUT2 = "1";
GDK_SCALE = "1";
2024-02-04 20:51:11 +00:00
};
};
2024-04-04 19:05:02 +00:00
xdg.portal = {
xdgOpenUsePortal = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
2024-02-04 20:51:11 +00:00
2024-02-16 16:55:39 +00:00
programs = {
kdeconnect.enable = true;
partition-manager.enable = true;
2024-04-04 19:05:02 +00:00
dconf.enable = true;
2024-02-16 16:55:39 +00:00
};
2024-02-04 20:51:11 +00:00
}