From 370a84192ef576d0c7ae3a4623ff8131a9f4482b Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 24 Dec 2018 12:07:26 +0100 Subject: [PATCH] gtk: make gtk.gtk2 and gtk.gtk3 not submodules --- modules/misc/gtk.nix | 92 +++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 52 deletions(-) diff --git a/modules/misc/gtk.nix b/modules/misc/gtk.nix index 9f7513d10..6542091c0 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 ]; + + ''; }; }; };