Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nixops expression ending:
- let
- ...
- in
- rec {
- network.description = "cluster";
- } // builtins.listToAttrs (map ({ hostname, nodeConfig, ... }: { name = hostname; value = nodeConfig; }) allServers)
- Converted to nixus:
- let
- ...
- in
- rec {
- nodes = builtins.listToAttrs (map ({ hostname, nodeConfig, ... }: { name = hostname; value = { host = nodeConfig.ip; configuration = nodeConfig}; }) allServers)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement