Install NixOS on Liteserver: Difference between revisions

imported>Hugo-Heagren
Change networking config to allow for SSH.
imported>Hugo-Heagren
No edit summary
Line 88: Line 88:
       "<YOUR IPV4 GATEWAY>"
       "<YOUR IPV4 GATEWAY>"
       "<YOUR GATEWAY (from above)>"
       "<YOUR GATEWAY (from above)>"
    ];
  };
</syntaxhighlight>
<syntaxhighlight lang="shell">
  systemd.network.enable = true;
  systemd.network.networks."10-wan" = {
    # because the architecture is amd64
    matchConfig.Name = "ens3";
    networkConfig.DHCP = "ipv4";
    address = [
      # From liteserver's config for my subnet (on this machine)
      "<YOUR MODIFIED SUBNET (from above)>" # e.g. 2a04:52c0:118:fe87::2/48
    ];
    routes = [
      { routeConfig.Gateway = "<YOUR GATEWAY (from above)"; } # e.g. 2a04:52c0:118::1
     ];
     ];
   };
   };