nix: fix toml conversion

This commit is contained in:
DashieTM 2024-05-30 19:38:55 +02:00
parent f5d0eae840
commit f729310502

View file

@ -34,7 +34,8 @@ in
}; };
plugin_config = mkOption { plugin_config = mkOption {
type = with types; nullOr (listOf toml); # TODO: define type
# type = with types; nullOr (listOf toml);
default = null; default = null;
description = mdDoc '' description = mdDoc ''
Toml values passed to the configuration for plugins to use. Toml values passed to the configuration for plugins to use.
@ -62,6 +63,6 @@ in
xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml { }).generate "reset" xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml { }).generate "reset"
{ {
plugins = fetchedPlugins; plugins = fetchedPlugins;
} ++ cfg.config.plugin_config; } ++ (pkgs.formats.toml cfg.config.plugin_config);
}; };
} }