diff --git a/modules/programs/vivid.nix b/modules/programs/vivid.nix index 7becdfa5e..45738b91f 100644 --- a/modules/programs/vivid.nix +++ b/modules/programs/vivid.nix @@ -138,7 +138,7 @@ in // (lib.mapAttrs' ( name: value: lib.nameValuePair "vivid/themes/${name}.yml" { - source = if lib.isAttrs value then yamlFormat.generate "${name}.yml" value else value; + source = if lib.isAttrs value then pkgs.writeText "${name}.json" (builtins.toJSON value) else value; } ) cfg.themes); diff --git a/tests/modules/programs/vivid/themes/tiny.yml b/tests/modules/programs/vivid/themes/tiny.yml index c8d435fcb..e6e4db837 100644 --- a/tests/modules/programs/vivid/themes/tiny.yml +++ b/tests/modules/programs/vivid/themes/tiny.yml @@ -1,9 +1 @@ -colors: - primary: 00aaff - secondary: ff00aa -core: - directory: - foreground: primary - executable-file: - font-style: bold - foreground: secondary +{"colors":{"primary":"00aaff","secondary":"ff00aa"},"core":{"directory":{"foreground":"primary"},"executable-file":{"font-style":"bold","foreground":"secondary"}}} \ No newline at end of file