Install NixOS on Liteserver: Difference between revisions

imported>Hugo-Heagren
No edit summary
imported>Hugo-Heagren
No edit summary
Line 71: Line 71:
The below setup does not include DHCP, and instead statically configures both IPV6 and IPV4. The IPV4 is especially important if you want to ssh into your server (which you almost certainly will -- the qemu portal offered by liteserver is not particularly nice to work with). We disable DHCP because it inteferes with such static configuration.
The below setup does not include DHCP, and instead statically configures both IPV6 and IPV4. The IPV4 is especially important if you want to ssh into your server (which you almost certainly will -- the qemu portal offered by liteserver is not particularly nice to work with). We disable DHCP because it inteferes with such static configuration.


You can find your IPV4 address listed as the 'Primary IP' on the front dashboard after you login to Liteserver's client area. It will look something like "192.0.2.0". Your IPV4 gateway is your IPV4, with a '1' instead of the final number. So if your IPV4 address is '192.0.2.0', then your gateway is '192.0.2.1'.
You can find your IPV4 address listed as the 'Primary IP' on the front dashboard after you login to Liteserver's client area. It will look something like '192.0.2.0'. Your IPV4 gateway is your IPV4, with a '1' instead of the final number. So if your IPV4 address is '192.0.2.0', then your gateway is '192.0.2.1'.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 81: Line 81:
     matchConfig.Name = "ens3";
     matchConfig.Name = "ens3";
     address = [
     address = [
       "<YOUR IPV4 ADDRESS>/24"
       "<YOUR IPV4 ADDRESS>/24" # the '/24' is *not* a typo
       "<YOUR MODIFIED SUBNET (from above)>" # e.g. 2a04:52c0:118:fe87::2/48
       "<YOUR MODIFIED SUBNET (from above)>" # e.g. 2a04:52c0:118:fe87::2/48
      "2a04:52c0:118:fe87::2/48"
     ];
     ];
     gateway = [
     gateway = [