ophanim: configure ipv6

This commit is contained in:
Kevin Baensch 2025-07-15 21:44:34 +02:00
parent 6e6d8a84df
commit b4c9c18540
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -107,7 +107,21 @@
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
networking = {
useDHCP = lib.mkDefault true;
interfaces = {
ens3.ipv6.addresses = [
{
address = "2a0a:4cc0:c0:101::1";
prefixLength = 64;
}
];
};
defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
};
time.timeZone = "Europe/Berlin";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";