anchor.diff:                  <filename>~/.config/gtk-3.0/gtk.css</filename>.
                 '';
               };
  +
  +            waylandSupport = mkOption {
  +              type = types.bool;
  +              default = false;
  +              description = ''
  +                Support GSettings provider (dconf) in addition to
  +                GtkSettings (INI file). This is needed for Wayland.
  +                </para><para>
  +                Note, on NixOS the following line must be in the
  +                system configuration:
  +                <programlisting>
  +                services.dbus.packages = [ pkgs.gnome3.dconf ];
  +                </programlisting>
  +              '';
  +            };
             };
           };
         };
  
positive.code:   cfg = config.gtk;
    cfg2 = config.gtk.gtk2;
    cfg3 = config.gtk.gtk3;
  
    toGtk3Ini = generators.toINI {
      mkKeyValue = key: value:
  
negative.code:         optionalAttrs (cfg.iconTheme != null)
            { gtk-icon-theme-name = cfg.iconTheme.name; };
  
        dconfIni =
          optionalAttrs (cfg.font != null)
            { font-name = cfg.font.name; }
          //
          optionalAttrs (cfg.theme != null)
            { gtk-theme = cfg.theme.name; }
          //
          optionalAttrs (cfg.iconTheme != null)
            { icon-theme = cfg.iconTheme.name; };
  
        optionalPackage = opt:
          optional (opt != null && opt.package != null) opt.package;
      in
  