aboutsummaryrefslogtreecommitdiff
path: root/modules/home/desktop/components/gtk/default.nix
blob: ccdb0314ea03640895400ac991db665a79b7152f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ options, config, lib, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.desktop.components.gtk;
  theme = config.${namespace}.desktop.theme;
in {
  options.${namespace}.desktop.components.gtk = with types; {
    enable = mkEnableOption "gtk";
  };

  config = mkIf cfg.enable {
    gtk = {
      enable = true;

      theme = theme.gtk;

      font = {
        name = "monospace";
        size = 8;
      };
    };
  };
}