marleyos/modules/home/appearance/gtk/default.nix

27 lines
539 B
Nix

{
lib,
config,
...
}: let
cfg = config.marleyos.appearance.gtk;
in {
options.marleyos.appearance.gtk.enable = lib.mkEnableOption "gtk";
config = lib.mkIf cfg.enable {
home.pointerCursor.gtk.enable = true;
gtk = {
enable = true;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
iconTheme = with config.stylix.iconTheme; {
name =
if config.lib.stylix.colors.variant == "dark"
then dark
else light;
inherit package;
};
};
};
}