This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/modules/plasma-desktop.nix

60 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
{
services = {
desktopManager.plasma6.enable = true;
xserver = {
enable = true;
dpi = 96;
# Enable the KDE Plasma Desktop Environment.
displayManager = {
sddm = {
enable = true;
enableHidpi = true;
autoNumlock = true;
};
2024-03-13 22:54:07 +05:30
defaultSession = "plasma";
};
# Enable touchpad support.
libinput.enable = true;
};
fwupd = {
enable = true;
package = pkgs.fwupd;
};
};
security.pam.services.sddm.enableKwallet = true;
programs = {
xwayland.enable = true;
kdeconnect.enable = true;
firefox = {
enable = true;
preferencesStatus = "user";
};
};
2023-08-24 14:20:58 +05:30
qt.platformTheme = "kde";
system.activationScripts.remove_gtk_conf.text = ''
if [ -f "/home/payas/.gtkrc-2.0" ]; then
rm /home/payas/.gtkrc-2.0;
fi
if [ -d "/home/payas/.config/gtk-4.0" ]; then
rm -rf /home/payas/.config/gtk-4.0
fi
'';
environment = {
2024-03-13 22:54:07 +05:30
plasma6.excludePackages = with pkgs; [
kdePackages.elisa
2023-08-24 14:20:58 +05:30
];
systemPackages = with pkgs; [
# Wayland
wl-clipboard
];
};
}