alqueva/hosts/python/theme.nix
2024-12-16 21:10:56 +00:00

46 lines
1.3 KiB
Nix

{
pkgs,
lib,
...
}: let
themes = {
gtk-theme = pkgs.nightfox-gtk-theme.override {
colorVariants = ["dark"];
tweakVariants = ["carbon"];
sizeVariants = ["compact"];
themeVariants = ["all"];
};
icon-theme = pkgs.colloid-icon-theme;
cursor-theme = pkgs.simp1e-cursors;
};
in {
programs.dconf = {
enable = true;
profiles.user.databases = [
{
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
cursor-size = lib.gvariant.mkUint32 24;
cursor-theme = "Simp1e-Dark";
icon-theme = "Colloid-Dark";
gtk-theme = "Nightfox-Purple-Dark-Compact-Carbon";
};
};
}
];
};
qt = {
enable = true;
platformTheme = "gnome";
style = "adwaita-dark";
};
environment.systemPackages = builtins.attrValues themes;
systemd.user.tmpfiles.rules = [
"L+ %h/.config/gtk-4.0/gtk.css - - - - ${themes.gtk-theme}/share/themes/Nightfox-Purple-Dark-Compact-Carbon/gtk-4.0/gtk.css"
"L+ %h/.config/gtk-4.0/gtk-dark.css - - - - ${themes.gtk-theme}/share/themes/Nightfox-Purple-Dark-Compact-Carbon/gtk-4.0/gtk-dark.css"
"L+ %h/.config/gtk-4.0/assets - - - - ${themes.gtk-theme}/share/themes/Nightfox-Purple-Dark-Compact-Carbon/gtk-4.0/assets"
];
}