1
0

hosts/porter: Migrate to systemd-networkd

This commit is contained in:
clerie 2025-03-13 17:42:16 +01:00
parent 87466f0ac9
commit e4dc3bdc1f

@ -11,11 +11,20 @@
boot.loader.grub.device = "/dev/sda"; boot.loader.grub.device = "/dev/sda";
networking.useDHCP = false; networking.useDHCP = false;
# Network systemd.network.enable = true;
networking.interfaces.ens3.ipv4.addresses = [ { address = "5.45.100.191"; prefixLength = 22; } ]; systemd.network.networks."10-wan" = {
networking.interfaces.ens3.ipv6.addresses = [ { address = "2a03:4000:6:48d::1"; prefixLength = 64; } ]; matchConfig.Name = "ens3";
networking.defaultGateway = { address = "5.45.100.1"; interface = "ens3"; }; address = [
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; "2a03:4000:6:48d::1/64"
"5.45.100.191/22"
];
routes = [
{ Gateway = "fe80::1"; }
{ Gateway = "5.45.100.1"; }
];
linkConfig.RequiredForOnline = "routable";
};
networking.nameservers = [ "46.38.255.230" "46.38.252.230" ]; networking.nameservers = [ "46.38.255.230" "46.38.252.230" ];
clerie.nginx-port-forward = { clerie.nginx-port-forward = {