nixos-config/system/home-manager/gtk.nix

27 lines
631 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
let commonGtkSettings.gtk-application-prefer-dark-theme = 1;
in {
home.packages = with pkgs; [ dconf ];
home.pointerCursor.gtk.enable = true;
dconf = {
enable = true;
settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
gtk = {
enable = true;
iconTheme = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
};
gtk2.extraConfig = lib.generators.toINIWithGlobalSection { } {
globalSection = commonGtkSettings;
sections = { };
};
gtk3.extraConfig = commonGtkSettings;
gtk4.extraConfig = commonGtkSettings;
};
}