Install NixOS on Hetzner Cloud: Difference between revisions

Hexa (talk | contribs)
m →‎Network configuration: swap nowiki for syntaxhighlighting
Hexa (talk | contribs)
→‎Network configuration: nixfmt, more commenting
Line 53: Line 53:
     networkConfig.DHCP = "ipv4";
     networkConfig.DHCP = "ipv4";
     address = [
     address = [
       # replace this address with the one assigned to your instance
       # replace this subnet with the one assigned to your instance
       "2a01:4f8:aaaa:bbbb::1/64"
       "2a01:4f8:aaaa:bbbb::1/64"
     ];
     ];
     routes = [
     routes = [ { routeConfig.Gateway = "fe80::1"; } ];
      { routeConfig.Gateway = "fe80::1"; }
    ];
   };
   };
</syntaxhighlight>
</syntaxhighlight>
Line 72: Line 70:
       # replace this address with the one assigned to your instance
       # replace this address with the one assigned to your instance
       "A.B.C.D/32"
       "A.B.C.D/32"
      # replace this subnet with the one assigned to your instance
      "2a01:4f8:aaaa:bbbb::1/64"
     ];
     ];
     routes = [
     routes = [ {
       { routeConfig = { Destination = "172.31.1.1"; }; }
       routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; }
       { routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; }
       { routeConfig.Gateway = "fe80::1"; }
     ];
     ];
   };
   };