diff --git a/modules/misc/gtk.nix b/modules/misc/gtk.nix
index 9f7513d1..6542091c 100644
--- a/modules/misc/gtk.nix
+++ b/modules/misc/gtk.nix
@@ -100,63 +100,51 @@ in
description = "The GTK+2/3 theme to use.";
};
- gtk2 = mkOption {
- description = "Options specific to GTK+ 2";
- default = {};
- type = types.submodule {
- options = {
- extraConfig = mkOption {
- type = types.lines;
- default = "";
- example = "gtk-can-change-accels = 1";
- description = ''
- Extra configuration lines to add verbatim to
- ~/.gtkrc-2.0.
- '';
- };
- };
+ gtk2 = {
+ extraConfig = mkOption {
+ type = types.lines;
+ default = "";
+ example = "gtk-can-change-accels = 1";
+ description = ''
+ Extra configuration lines to add verbatim to
+ ~/.gtkrc-2.0.
+ '';
};
};
- gtk3 = mkOption {
- description = "Options specific to GTK+ 3";
- default = {};
- type = types.submodule {
- options = {
- extraConfig = mkOption {
- type = types.attrs;
- default = {};
- example = { gtk-cursor-blink = false; gtk-recent-files-limit = 20; };
- description = ''
- Extra configuration options to add to
- ~/.config/gtk-3.0/settings.ini.
- '';
- };
+ gtk3 = {
+ extraConfig = mkOption {
+ type = types.attrs;
+ default = {};
+ example = { gtk-cursor-blink = false; gtk-recent-files-limit = 20; };
+ description = ''
+ Extra configuration options to add to
+ ~/.config/gtk-3.0/settings.ini.
+ '';
+ };
- extraCss = mkOption {
- type = types.lines;
- default = "";
- description = ''
- Extra configuration lines to add verbatim to
- ~/.config/gtk-3.0/gtk.css.
- '';
- };
+ extraCss = mkOption {
+ type = types.lines;
+ default = "";
+ description = ''
+ Extra configuration lines to add verbatim to
+ ~/.config/gtk-3.0/gtk.css.
+ '';
+ };
- waylandSupport = mkOption {
- type = types.bool;
- default = false;
- description = ''
- Support GSettings provider (dconf) in addition to
- GtkSettings (INI file). This is needed for Wayland.
-
- Note, on NixOS the following line must be in the
- system configuration:
-
- services.dbus.packages = [ pkgs.gnome3.dconf ];
-
- '';
- };
- };
+ waylandSupport = mkOption {
+ type = types.bool;
+ default = false;
+ description = ''
+ Support GSettings provider (dconf) in addition to
+ GtkSettings (INI file). This is needed for Wayland.
+
+ Note, on NixOS the following line must be in the
+ system configuration:
+
+ services.dbus.packages = [ pkgs.gnome3.dconf ];
+
+ '';
};
};
};