hosts/athame: IPv6 support

This commit is contained in:
kat witch 2021-04-26 14:32:31 +01:00
parent 7314bbde47
commit 495d4d6f9b
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -1,4 +1,4 @@
{ config, pkgs, profiles, ... }:
{ config, lib, pkgs, profiles, ... }:
{
imports = [
@ -43,6 +43,16 @@
useDHCP = false;
interfaces.enp1s0.useDHCP = true;
};
networking.interfaces.enp1s0.ipv6.addresses = [ {
address = "2a01:4f8:c2c:b7a8::1";
prefixLength = 64;
} ];
networking.defaultGateway6 = {
address = "fe80::1";
interface = "enp1s0";
};
networking.firewall.allowedTCPPorts =
[ 22 80 443 5160 5060 8999 64738 1935 53589 5001 ];