Guest User

Untitled

a guest
Jan 29th, 2021
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Nixops expression ending:
  2.  
  3. let
  4. ...
  5.  
  6. in
  7. rec {
  8. network.description = "cluster";
  9.  
  10. } // builtins.listToAttrs (map ({ hostname, nodeConfig, ... }: { name = hostname; value = nodeConfig; }) allServers)
  11.  
  12.  
  13. Converted to nixus:
  14.  
  15. let
  16. ...
  17.  
  18. in
  19. rec {
  20. nodes = builtins.listToAttrs (map ({ hostname, nodeConfig, ... }: { name = hostname; value = { host = nodeConfig.ip; configuration = nodeConfig}; }) allServers)
  21.  
  22. }
RAW Paste Data