mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-12 08:28:32 +02:00
nix: Allow definition of further toml values
This commit is contained in:
parent
40beca475f
commit
073e88ab4f
|
@ -34,8 +34,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
plugin_config = mkOption {
|
plugin_config = mkOption {
|
||||||
# TODO: define type
|
type = with types; nullOr (listOf pkgs.formats.toml);
|
||||||
# type = with types; nullOr (listOf toml);
|
|
||||||
default = { };
|
default = { };
|
||||||
description = mdDoc ''
|
description = mdDoc ''
|
||||||
Toml values passed to the configuration for plugins to use.
|
Toml values passed to the configuration for plugins to use.
|
||||||
|
@ -65,10 +64,10 @@ in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
home.packages = lib.optional (cfg.package != null) cfg.package;
|
home.packages = lib.optional (cfg.package != null) cfg.package;
|
||||||
|
|
||||||
xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml { }).generate "reset"
|
xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml cfg.config.plugin_config).generate "reset"
|
||||||
{
|
{
|
||||||
plugins = fetchedPlugins;
|
plugins = fetchedPlugins;
|
||||||
plugin_path = path;
|
plugin_path = path;
|
||||||
}; #++ (pkgs.formats.toml cfg.config.plugin_config);
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue