alqueva/hosts/python/theme.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-02 17:48:54 +00:00
{
pkgs,
lib,
...
2024-12-10 15:12:00 +00:00
}: let
themes = {
2024-12-13 20:44:36 +00:00
gtk-theme = pkgs.nightfox-gtk-theme.override {
colorVariants = ["dark"];
tweakVariants = ["carbon"];
sizeVariants = ["compact"];
themeVariants = ["all"];
};
icon-theme = pkgs.colloid-icon-theme;
2024-12-10 15:12:00 +00:00
cursor-theme = pkgs.simp1e-cursors;
};
in {
2024-11-02 17:48:54 +00:00
programs.dconf = {
2024-12-16 21:10:12 +00:00
enable = true;
2024-11-02 17:48:54 +00:00
profiles.user.databases = [
{
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
cursor-size = lib.gvariant.mkUint32 24;
2024-12-19 18:59:32 +00:00
cursor-theme = "Simp1e-Adw-Dark";
2024-12-13 20:44:36 +00:00
icon-theme = "Colloid-Dark";
gtk-theme = "Nightfox-Purple-Dark-Compact-Carbon";
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 = [
2024-12-13 20:44:36 +00:00
"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"
2024-11-02 17:48:54 +00:00
];
}