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

26 lines
457 B
Nix

{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.marleyos) mkEnableModule enabled;
cfg = config.marleyos.appearance.gtk;
inherit (config.marleyos.theme) colors;
in
{
options.marleyos = mkEnableModule "appearance.gtk";
config = mkIf cfg.enable {
gtk = {
enable = true;
rose-pine = mkIf colors.isRosePine enabled;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
};
}