nixos-config/home-manager/plasma.nix

74 lines
1.6 KiB
Nix

{ extra, ... }:
{
programs.plasma = {
enable = true;
overrideConfig = true;
workspace.lookAndFeel = "org.kde.breezedark.desktop";
kscreenlocker = {
appearance.wallpaper = "${extra.wall}";
};
fonts = {
general = {
family = "SAX2 Nerd Font";
pointSize = 10;
};
};
powerdevil = {
AC.whenLaptopLidClosed = "hibernate";
battery.whenLaptopLidClosed = "hibernate";
lowBattery.whenLaptopLidClosed = "hibernate";
};
panels = [
{
location = "top";
floating = true;
height = 36;
widgets = [
{
digitalClock = {
calendar.firstDayOfWeek = "monday";
time.format = "24h";
};
}
{
name = "org.kde.plasma.panelspacer";
config = { General.expanding = true; };
}
{
name = "org.kde.plasma.icontasks";
config = { General.launchers = [ ]; };
}
{
systemTray.items = {
shown = [
"org.kde.plasma.battery"
"org.kde.plasma.bluetooth"
"org.kde.plasma.networkmanagement"
"org.kde.plasma.volume"
];
};
}
];
}
];
configFile."kcminputrc" = {
"Mouse"."X11LibInputXAccelProfileFlat" = true;
"Mouse"."XLbInptPointerAcceleration" = 0;
};
configFile."startkderc" = {
"General"."systemdBoot" = false; # needed to use i3 in place of KWin
};
};
home.packages = [
extra.rc2nix
];
}