You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, im trying to create an ansible project using nix language. I have an entire directory of .nix files that are referencing each other through self, super, root and are structured in ansible compatible hierarchy. Now i would like to save these imported nix expressions to .yaml files in a new directory while keeping the hierarchy structure intact, so i can run ansible-playbook on it.
I was hoping there is some way to iterate over the files that haumena has loaded, with access to their relative filepath and the evaluated expression so i could do something like this (pkgs.formats.yaml {}).generate "path/filename.yml" nixexpr
Help much appreciated and thanks for your work on this project.
The text was updated successfully, but these errors were encountered:
Hi, im trying to create an ansible project using nix language. I have an entire directory of .nix files that are referencing each other through
self, super, root
and are structured in ansible compatible hierarchy. Now i would like to save these imported nix expressions to.yaml
files in a new directory while keeping the hierarchy structure intact, so i can run ansible-playbook on it.I was hoping there is some way to iterate over the files that haumena has loaded, with access to their relative filepath and the evaluated expression so i could do something like this
(pkgs.formats.yaml {}).generate "path/filename.yml" nixexpr
Help much appreciated and thanks for your work on this project.
The text was updated successfully, but these errors were encountered: