diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-10 23:47:19 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-10 23:48:40 +0200 |
commit | 9b422c996c519cf1f0d315f0ab39c95989e32189 (patch) | |
tree | 3c54ed6367f65a77e24518da289242a20a22852c /modules/home/conf/beets/default.nix | |
parent | fix(home/beets): Typo in inline python code (diff) | |
download | nixos-config-9b422c996c519cf1f0d315f0ab39c95989e32189.tar.gz nixos-config-9b422c996c519cf1f0d315f0ab39c95989e32189.zip |
fix(home/beets): Generate the config file in JSON syntax
Diffstat (limited to 'modules/home/conf/beets/default.nix')
-rw-r--r-- | modules/home/conf/beets/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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); } |