From 9b422c996c519cf1f0d315f0ab39c95989e32189 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 10 Aug 2024 23:47:19 +0200 Subject: fix(home/beets): Generate the config file in JSON syntax --- modules/home/conf/beets/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/home/conf') diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index 643538e7..ac42d5b9 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -1,5 +1,6 @@ { pkgs, + lib, config, ... }: { @@ -228,4 +229,13 @@ host = config.home.sessionVariables.MPD_HOST; }; }; + + # Use the json formatter instead of the YAML one, as the YAML formatter mangles the + # longer python inline strings. + # YAML is a superset of JSON. + xdg.configFile."beets/config.yaml".source = + lib.mkForce + ((pkgs.formats.json {}).generate + "beets-config" + config.programs.beets.settings); } -- cgit 1.4.1