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

26 lines
498 B
Nix
Raw Normal View History

2024-11-15 21:33:07 -08:00
{
lib,
config,
...
2025-01-11 21:11:41 -08:00
}: let
inherit (lib) mkEnableOption mkIf;
inherit (lib.marleyos) enabled;
2024-11-15 21:33:07 -08:00
cfg = config.marleyos.appearance.gtk;
inherit (config.marleyos.theme) colors;
2025-01-11 21:11:41 -08:00
in {
options.marleyos.appearance.gtk.enable = mkEnableOption "gtk";
2024-11-15 21:33:07 -08:00
config = mkIf cfg.enable {
2025-01-11 21:11:41 -08:00
home.pointerCursor.gtk.enable = true;
2024-11-15 21:33:07 -08:00
gtk = {
enable = true;
2024-11-16 22:44:45 -08:00
rose-pine = mkIf colors.isRosePine enabled;
2024-11-15 21:33:07 -08:00
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
};
}