With Nix 2.1 ( https://nixos.org/nix/manual/#ssec-relnotes-2.1 ) reading TOML files has become a builtin function in Nix, just builtins.fromTOML /path/to/the/file.toml .

I can't imagine this being unrelated to Mozilla's implementation in Nix.