spacepaste

  1.  
  2. { config, pkgs, ... }:
  3. { networking.firewall.allowedTCPPorts = [ 2379 2380 ];
  4. services.etcd = {
  5. advertiseClientUrls = [ ("http://" + config.networking.hostName + ":2379") ];
  6. enable = true;
  7. listenClientUrls = [ ("http://" + config.networking.hostName + ":2379") "http://localhost:2379" ];
  8. listenPeerUrls = [ ("http://" + config.networking.hostName + ":2380") ];
  9. name = config.networking.hostName;
  10. };
  11. }
  12.