Files
NixOsConfig/modules/home/theming.nix
T
2026-10-12 18:15:38 +03:00

52 lines
1.2 KiB
Nix
Executable File

# Dark GTK and Qt look, icons and cursor. Noctalia themes the shell itself;
# this keeps the apps consistent with it.
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.home.theming;
in
{
options.my.home.theming.enable = lib.mkEnableOption "GTK/Qt theme, icons and cursor";
config = lib.mkIf cfg.enable {
gtk = {
enable = true;
colorScheme = "dark";
theme = {
name = "adw-gtk3-dark";
package = pkgs.adw-gtk3;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
};
# gtk.enable above lets GTK apps pick the cursor up from here.
home.pointerCursor = {
enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 24;
gtk.enable = true;
};
# Qt apps follow the GTK settings, with the Adwaita dark widget style.
qt = {
enable = true;
platformTheme.name = "gtk3";
style.name = "adwaita-dark";
};
# libadwaita and GTK 4 apps read the preference from dconf. The system
# needs programs.dconf.enable for this to be applied.
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
}