59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ 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;
|
|
};
|
|
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";
|
|
};
|
|
};
|
|
|
|
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 = {
|
|
plasma6.excludePackages = with pkgs; [
|
|
kdePackages.elisa
|
|
];
|
|
|
|
systemPackages = with pkgs; [
|
|
# Wayland
|
|
wl-clipboard
|
|
];
|
|
};
|
|
}
|