forked from auxolotl/labs
14 lines
297 B
Nix
14 lines
297 B
Nix
|
lib: {
|
||
|
importers = {
|
||
|
## Import a JSON file as a Nix value.
|
||
|
##
|
||
|
## @type Path -> a
|
||
|
json = file: builtins.fromJSON (builtins.readFile file);
|
||
|
|
||
|
## Import a TOML file as a Nix value.
|
||
|
##
|
||
|
## @type Path -> a
|
||
|
toml = file: builtins.fromTOML (builtins.readFile file);
|
||
|
};
|
||
|
}
|