Anthony Rodriguez
2ac966be49
Initially, I was using a weird combination of options in order to apply my theme dynamically. I was setting a read-only option from inside my modules, which was then used in every application that required it. What I ended up doing is refactoring everything in order to be inside of my theme module, and automatically configured when enabled, without doing any mkMerge/mkIf shenanigans in my other pieces of configuration. This is healthier, although it should be split up as the theme/default.nix got quite big.
25 lines
368 B
Nix
25 lines
368 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
gtk = {
|
|
enable = true;
|
|
|
|
font = {
|
|
name = "Inter";
|
|
package = pkgs.inter;
|
|
size = 11;
|
|
};
|
|
|
|
gtk3.extraConfig = {
|
|
gtk-decoration-layout = ":menu";
|
|
};
|
|
|
|
gtk4.extraConfig = {
|
|
gtk-decoration-layout = ":menu";
|
|
};
|
|
|
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
|
};
|
|
}
|