mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
wrapper-manager/dconf: add keyfiles option
This commit is contained in:
parent
c6754dc8dd
commit
8658febe8d
@ -41,13 +41,19 @@ in
|
||||
"dconf-profile"
|
||||
(lib.concatMapStrings (db: "${db}\n") submoduleCfg.profile);
|
||||
|
||||
dconfDirName = "wrapper-manager-dconf-${config.executableName}";
|
||||
dconfSettings =
|
||||
settingsFormat.generate dconfDirName submoduleCfg.settings;
|
||||
settingsFormat.generate "wrapper-manager-dconf-${config.executableName}-settings" submoduleCfg.settings;
|
||||
|
||||
keyfilesDir = pkgs.symlinkJoin {
|
||||
name = "wrapper-manager-dconf-${config.executableName}";
|
||||
paths = submoduleCfg.keyfiles ++ [ "${dconfSettings}/dconf" ];
|
||||
};
|
||||
|
||||
dconfSettingsDatabase =
|
||||
pkgs.runCommand "wrapper-manager-dconf-${config.executableName}-database" { nativeBuildInputs = [ submoduleCfg.package ]; } ''
|
||||
dconf compile ${builtins.placeholder "out"} "${dconfSettings}/dconf"
|
||||
pkgs.runCommand "wrapper-manager-dconf-${config.executableName}-database" {
|
||||
nativeBuildInputs = [ submoduleCfg.package ];
|
||||
} ''
|
||||
dconf compile ${builtins.placeholder "out"} "${keyfilesDir}"
|
||||
'';
|
||||
in {
|
||||
options.dconf = {
|
||||
@ -73,6 +79,20 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
keyfiles = lib.mkOption {
|
||||
type = with lib.types; listOf path;
|
||||
description = ''
|
||||
Additional list of keyfiles to be included as part of the dconf
|
||||
database.
|
||||
'';
|
||||
default = [ ];
|
||||
example = lib.literalExpression ''
|
||||
[
|
||||
./config/dconf/90-extra-settings.conf
|
||||
]
|
||||
'';
|
||||
};
|
||||
|
||||
profile = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
description = ''
|
||||
|
Loading…
Reference in New Issue
Block a user