nixos-config/home/gtk.nix

37 lines
655 B
Nix
Raw Normal View History

2022-04-20 11:57:50 +02:00
{
config,
lib,
pkgs,
...
}: let
cfg = config.my.home.gtk;
in {
options.my.home.gtk = with lib; {
enable = (mkEnableOption "GTK configuration") // {default = config.my.home.x.enable;};
};
config.gtk = lib.mkIf cfg.enable {
enable = true;
font = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
gtk2 = {
# No garbage polluting my $HOME
configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
iconTheme = {
2024-12-01 18:05:35 +01:00
package = pkgs.gnome-themes-extra;
2022-04-20 11:57:50 +02:00
name = "Adwaita";
};
theme = {
2024-12-01 18:05:35 +01:00
package = pkgs.gnome-themes-extra;
2022-04-20 11:57:50 +02:00
name = "Adwaita";
};
};
}