nixos-config/home-manager/plasma.nix

83 lines
1.9 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 = "bottom";
floating = true;
height = 44;
widgets = [
{
name = "org.kde.plasma.kickoff";
config = {
General.icon = "nix-snowflake-white";
};
}
{
name = "org.kde.plasma.icontasks";
config = {
General.launchers = [
"applications:thunderbird.desktop"
"applications:org.wezfurlong.wezterm.desktop"
"applications:firefox.desktop"
"applications:discord.desktop"
];
};
}
{
systemTray.items = {
shown = [
"org.kde.plasma.battery"
"org.kde.plasma.bluetooth"
"org.kde.plasma.networkmanagement"
"org.kde.plasma.volume"
];
};
}
{
digitalClock = {
calendar.firstDayOfWeek = "monday";
time.format = "24h";
};
}
];
}
];
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
];
}