Refactor plasma role #12

Merged
Toast merged 4 commits from plasma-refactor into main 2024-11-12 09:43:02 +01:00
4 changed files with 64 additions and 32 deletions

View file

@ -46,17 +46,7 @@ in {
kFinal: kPrev: {
libplasma = kPrev.libplasma.overrideAttrs {
patches = [
../kde/patches/libplasma-pr1214.patch
];
};
kwin = kPrev.kwin.overrideAttrs {
patches = kPrev.kwin.patches ++ [
../kde/patches/kwin-pr6406.patch
];
};
konsole = kPrev.konsole.overrideAttrs {
patches = [
../kde/patches/konsole-pr767.patch
./patches/libplasma-pr1214.patch
];
};
}
@ -98,16 +88,6 @@ in {
theme = "default";
colorScheme = "CatppuccinMochaMauve";
};
kwin = {
titlebarButtons = {
left = ["on-all-desktops" "keep-above-windows"];
right = ["minimize" "maximize" "close"];
};
virtualDesktops = {
rows = 1;
number = 2;
};
};
input = {
keyboard = {
layouts = [{layout = "es";}];
@ -138,17 +118,7 @@ in {
];
}
];
shortcuts = {
"kwin" = {
"Switch One Desktop to the Left" = ["Meta+Ctrl+Left"];
"Switch One Desktop to the Right" = ["Meta+Ctrl+Right"];
};
};
configFile = {
"kwinrc" = {
"org.kde.kdecoration2"."BorderSize".value = "None";
"TabBox"."LayoutName".value = "thumbnail_grid";
};
"kdeglobals"."General"."AccentColor".value = null;
"auroraerc"."CatppuccinMocha-Classic"."ButtonSize".value = 0;
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop".value = true;

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
./kate.nix
./firefox.nix
@ -7,8 +7,10 @@
# ./neochat.nix
./konsole.nix
./git.nix
./kwin.nix
];
# Enable the kde partition manager
programs.partition-manager.enable = true;
programs.steam.extraPackages = [pkgs.kdePackages.breeze];
}

View file

@ -24,4 +24,19 @@ in {
};
};
};
nixpkgs.overlays = [
(
final: prev: {
kdePackages = prev.kdePackages.overrideScope (
kFinal: kPrev: {
konsole = kPrev.konsole.overrideAttrs {
patches = [
../patches/konsole-pr767.patch
];
};
}
);
}
)
];
}

View file

@ -0,0 +1,45 @@
{...}: {
nixpkgs.overlays = [
(
final: prev: {
kdePackages = prev.kdePackages.overrideScope (
kFinal: kPrev: {
kwin = kPrev.kwin.overrideAttrs {
patches =
kPrev.kwin.patches
++ [
./patches/kwin-pr6406.patch
];
};
}
);
}
)
];
home-manager.users.toast = {
programs.plasma = {
kwin = {
titlebarButtons = {
left = ["on-all-desktops" "keep-above-windows"];
right = ["minimize" "maximize" "close"];
};
virtualDesktops = {
rows = 1;
number = 2;
};
};
configFile = {
"kwinrc" = {
"org.kde.kdecoration2"."BorderSize".value = "None";
"TabBox"."LayoutName".value = "thumbnail_grid";
};
};
shortcuts = {
"kwin" = {
"Switch One Desktop to the Left" = ["Meta+Ctrl+Left"];
"Switch One Desktop to the Right" = ["Meta+Ctrl+Right"];
};
};
};
};
}