1
0
mirror of https://github.com/kmein/niveum synced 2026-03-29 08:41:07 +02:00

feat: add overlays, write TOML

This commit is contained in:
Kierán Meinhardt
2019-11-05 21:59:51 +01:00
parent ff99bfcb5a
commit e296de9ed1
5 changed files with 171 additions and 153 deletions

6
overlays/toml.nix Normal file
View File

@@ -0,0 +1,6 @@
(self: super: {
writeTOML = object: super.runCommand "writeTOML" {} ''
echo '${builtins.toJSON object}' | ${super.remarshal}/bin/json2toml > $out
'';
toTOML = object: builtins.readFile (self.writeTOML object);
})