wrapper-manager/dconf: add read-only option to refer to database drv

This commit is contained in:
Gabriel Arazas 2024-08-29 21:09:34 +08:00
parent 8658febe8d
commit 496527e76b
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -105,10 +105,20 @@ in
database file from our settings. 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 { config = lib.mkIf submoduleCfg.enable {
env.DCONF_PROFILE.value = dconfProfileFile; env.DCONF_PROFILE.value = dconfProfileFile;
dconf.databaseDrv = dconfSettingsDatabase;
}; };
}; };
in in