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