nixnew/modules/theme/default.nix
outfoxxed 546298220a
fix qt6 dolphin and kde theming
A small sample of the massive uncommitted change hoard
2025-01-05 22:11:49 -08:00

44 lines
1.1 KiB
Nix

{ self, lib, config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
qt6.qtwayland
kdePackages.breeze
kdePackages.breeze-icons
qt6.qtsvg # needed to load breeze icons
kdePackages.qqc2-desktop-style
];
qt = {
enable = true;
platformTheme = "qt5ct";
};
home-manager.users.${config.main-user} = {
imports = [ ./home.nix ];
};
nixpkgs.overlays = [(final: prev: {
qt6Packages = prev.qt6Packages.overrideScope (qfinal: qprev: {
qt6ct = qprev.qt6ct.overrideAttrs (ctprev: {
src = pkgs.fetchFromGitHub {
owner = "ilya-fedin";
repo = "qt6ct";
rev = "refs/heads/shenanigans";
sha256 = "2RlzcjGx4vBs+r/kXd1kP3o5tQ5hWdlu4J/tWmd7FVk=";
};
nativeBuildInputs = (builtins.filter (p: p != qfinal.qmake) ctprev.nativeBuildInputs) ++ [ final.cmake ];
buildInputs = ctprev.buildInputs ++ (with final.kdePackages; [
kconfig
kcolorscheme
kiconthemes
]);
cmakeFlags = [
(lib.cmakeFeature "PLUGINDIR" "lib/qt-6/plugins")
];
});
});
})];
}