ma 1system: ip4 -> ipv4.addresses

This commit is contained in:
makefu 2018-08-29 00:57:57 +02:00
parent 70c41d322c
commit 7fa3fc7b1a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
5 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ in {
allowedTCPPorts = [ ]; allowedTCPPorts = [ ];
allowedUDPPorts = [ 655 ]; allowedUDPPorts = [ 655 ];
}; };
interfaces.enp0s3.ip4 = [{ interfaces.enp0s3.ipv4.addresses = [{
address = external-ip; address = external-ip;
inherit prefixLength; inherit prefixLength;
}]; }];

View File

@ -145,13 +145,13 @@ in {
networking.nameservers = [ "8.8.8.8" ]; networking.nameservers = [ "8.8.8.8" ];
# SPF # SPF
networking.defaultGateway = "151.217.176.1"; networking.defaultGateway = "151.217.176.1";
networking.interfaces.enp6s0f0.ip4 = [{ networking.interfaces.enp6s0f0.ipv4.addresses = [{
address = "151.217.178.63"; address = "151.217.178.63";
prefixLength = 22; prefixLength = 22;
}]; }];
# Gigabit # Gigabit
networking.interfaces.enp8s0f1.ip4 = [{ networking.interfaces.enp8s0f1.ipv4.addresses = [{
address = "192.168.126.1"; address = "192.168.126.1";
prefixLength = 24; prefixLength = 24;
}]; }];

View File

@ -46,7 +46,7 @@ in {
dst = "10.8.10.6"; dst = "10.8.10.6";
}; };
networking = { networking = {
interfaces.enp2s1.ip4 = [ interfaces.enp2s1.ipv4.addresses = [
{ address = ip; prefixLength = 24; } { address = ip; prefixLength = 24; }
# { address = alt-ip; prefixLength = 24; } # { address = alt-ip; prefixLength = 24; }
]; ];

View File

@ -150,7 +150,7 @@ in {
# rt2870 with nonfree creates wlp2s0 from wlp0s20u2 # rt2870 with nonfree creates wlp2s0 from wlp0s20u2
# not explicitly setting the interface results in wpa_supplicant to crash # not explicitly setting the interface results in wpa_supplicant to crash
networking.wireless.interfaces = [ "wlp2s0" ]; networking.wireless.interfaces = [ "wlp2s0" ];
networking.interfaces.virbr1.ip4 = [{ networking.interfaces.virbr1.ipv4.addresses = [{
address = "10.8.8.11"; address = "10.8.8.11";
prefixLength = 24; prefixLength = 24;
}]; }];

View File

@ -42,7 +42,7 @@ in {
allowedTCPPorts = [ 53 80 443 ]; allowedTCPPorts = [ 53 80 443 ];
allowedUDPPorts = [ 655 53 ]; allowedUDPPorts = [ 655 53 ];
}; };
interfaces.enp2s1.ip4 = [{ interfaces.enp2s1.ipv4.addresses = [{
address = external-ip; address = external-ip;
prefixLength = 24; prefixLength = 24;
}]; }];