From d6f65d8ec1b9d22167f92f16ce78a483a23e55a1 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Sat, 14 Nov 2026 18:37:37 +0100 Subject: modules/dconf: Make possible to disable --- modules/by-name/dc/dconf/module.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'modules/by-name') diff --git a/modules/by-name/dc/dconf/module.nix b/modules/by-name/dc/dconf/module.nix index ec055a6f..78d34546 100644 --- a/modules/by-name/dc/dconf/module.nix +++ b/modules/by-name/dc/dconf/module.nix @@ -7,11 +7,22 @@ # # You should have received a copy of the License along with this program. # If not, see . -{...}: { - # needed to make home-manager play nice with some apps. See: - # https://nix-community.github.io/home-manager/index.xhtml#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal - programs.dconf.enable = true; - # FIXME: This should also be parameterized. <2024-05-16> +{ + config, + lib, + ... +}: let + cfg = config.soispha.services.dconf; +in { + options.soispha.services.dconf = { + enable = lib.mkEnableOption "dconf"; + }; + + config = lib.mkIf cfg.enable { + # needed to make home-manager play nice with some apps. See: + # https://nix-community.github.io/home-manager/index.xhtml#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal + programs.dconf.enable = true; + }; } # vim: nolinebreak nowrap textwidth=0 -- cgit v1.3.1