From 073e88ab4f988f2a6752c1c103b6c51f4b4bc03b Mon Sep 17 00:00:00 2001 From: DashieTM Date: Fri, 31 May 2024 14:22:19 +0200 Subject: [PATCH] nix: Allow definition of further toml values --- nix/hm.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nix/hm.nix b/nix/hm.nix index 67cbd9a..1c35fb2 100644 --- a/nix/hm.nix +++ b/nix/hm.nix @@ -34,8 +34,7 @@ in }; plugin_config = mkOption { - # TODO: define type - # type = with types; nullOr (listOf toml); + type = with types; nullOr (listOf pkgs.formats.toml); default = { }; description = mdDoc '' Toml values passed to the configuration for plugins to use. @@ -65,10 +64,10 @@ in lib.mkIf cfg.enable { 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; plugin_path = path; - }; #++ (pkgs.formats.toml cfg.config.plugin_config); + }; }; }