Anthony Rodriguez
e24ab1eb95
This is mostly so that applications like ReGreet, which are managed by NixOS instead of HM, can also use the same GTK settings. It reduces repeating code by a lot and allows changing themes way more easily now.
39 lines
707 B
Nix
39 lines
707 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
nixosConfig,
|
|
...
|
|
}: {
|
|
home.pointerCursor = {
|
|
inherit (nixosConfig.style.cursorTheme) name package size;
|
|
gtk.enable = true;
|
|
x11.enable = true;
|
|
};
|
|
|
|
gtk = let
|
|
commonGtkConfig = {
|
|
gtk-decoration-layout = ":menu";
|
|
};
|
|
in {
|
|
enable = true;
|
|
|
|
font = {
|
|
name = "Inter";
|
|
package = pkgs.inter;
|
|
size = 11;
|
|
};
|
|
|
|
gtk3.extraConfig = commonGtkConfig;
|
|
gtk4.extraConfig = commonGtkConfig;
|
|
|
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
|
|
|
iconTheme = {
|
|
inherit (nixosConfig.style.gtk.iconTheme) name package;
|
|
};
|
|
|
|
theme = {
|
|
inherit (nixosConfig.style.gtk.theme) name package;
|
|
};
|
|
};
|
|
}
|