alqueva/hosts/python/theme.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

2025-02-22 21:16:46 +00:00
{
pkgs,
config,
...
}: let
2024-12-10 15:12:00 +00:00
themes = {
2025-02-22 21:16:46 +00:00
# gtk-theme = pkgs.everforest-gtk-theme;
gtk-theme = pkgs.everforest-gtk-theme.overrideAttrs (finalAttrs: {
version = "0-unstable-2024-11-06";
src = pkgs.fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = finalAttrs.pname;
rev = "43cbe4f1aeba8b46e41836de4c8ea7ac398db119";
hash = "sha256-Z46i0Ihpzo4LhFvzKsvnzcHFzeYxJMvQmg2k6lmjGH0=";
};
nativeBuildInputs =
(finalAttrs.nativeBuildInputs or [])
++ [
pkgs.sassc
];
installPhase = ''
runHook preInstall
mkdir -p "$out"/share/{icons,themes}
cp -a icons/* "$out"/share/icons/
patchShebangs ./themes/install.sh
./themes/install.sh -d "$out"/share/themes/
runHook postInstall
'';
});
icon-theme = themes.gtk-theme;
2024-12-10 15:12:00 +00:00
cursor-theme = pkgs.simp1e-cursors;
};
2025-02-22 21:16:46 +00:00
cfg = config.alqueva.system.dconf;
2024-12-10 15:12:00 +00:00
in {
alqueva.system.dconf = {
2024-12-16 21:10:12 +00:00
enable = true;
luminosity = "dark";
2025-02-22 21:16:46 +00:00
theme = "everforest-gtk-theme-0-unstable-2024-11-06-Dark";
icon.theme = "Everforest-Dark";
cursor = {
size = 24;
2025-02-22 21:16:46 +00:00
theme = "Simp1e-Gruvbox-Dark";
};
2024-11-02 17:48:54 +00:00
};
qt = {
enable = true;
2024-12-13 20:44:36 +00:00
platformTheme = "gnome";
style = "adwaita-dark";
2024-11-02 17:48:54 +00:00
};
2024-12-10 15:12:00 +00:00
environment.systemPackages = builtins.attrValues themes;
systemd.user.tmpfiles.rules = [
2025-02-22 21:16:46 +00:00
"L+ %h/.config/gtk-4.0 - - - - ${themes.gtk-theme}/share/themes/${cfg.theme}/gtk-4.0"
2024-11-02 17:48:54 +00:00
];
}