home: setup base icon theme for gtk2

This commit is contained in:
Antoine Martin 2022-04-20 11:57:50 +02:00
parent b336329199
commit 5ebc6a0541
3 changed files with 41 additions and 0 deletions

View file

@ -102,6 +102,10 @@ in {
programs.nm-applet.enable = true;
programs.steam.enable = true;
# this is necessary to set GTK stuff in home manager
# FIXME: better interdependency between this and the home part
programs.dconf.enable = true;
# NOTE: needed for home emacs configuration
nixpkgs.config.input-fonts.acceptLicense = true;
};

View file

@ -8,6 +8,7 @@
./fish
./flameshot.nix
./git.nix
./gtk.nix
./laptop.nix
./lorri.nix
./mail.nix

36
home/gtk.nix Normal file
View file

@ -0,0 +1,36 @@
{
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 = {
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita";
};
theme = {
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita";
};
};
}