From 496527e76b2816ac00eac778679f18b7c06bcc65 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 29 Aug 2024 21:09:34 +0800 Subject: [PATCH] wrapper-manager/dconf: add read-only option to refer to database drv --- modules/wrapper-manager/dconf.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/wrapper-manager/dconf.nix b/modules/wrapper-manager/dconf.nix index b9130172..cdfacc6e 100644 --- a/modules/wrapper-manager/dconf.nix +++ b/modules/wrapper-manager/dconf.nix @@ -105,10 +105,20 @@ in database file from our settings. ''; }; + + databaseDrv = lib.mkOption { + type = lib.types.package; + description = '' + Derivation containing the compiled dconf database. Useful for + integrating with your own module. + ''; + readOnly = true; + }; }; config = lib.mkIf submoduleCfg.enable { env.DCONF_PROFILE.value = dconfProfileFile; + dconf.databaseDrv = dconfSettingsDatabase; }; }; in