mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Disable any ipv6 functionality
This commit is contained in:
parent
e0b6239ab6
commit
6804112df6
4 changed files with 19 additions and 49 deletions
|
|
@ -38,10 +38,7 @@ _: {
|
||||||
enable = true;
|
enable = true;
|
||||||
networks."10-enp6s0" = {
|
networks."10-enp6s0" = {
|
||||||
matchConfig.Name = "enp6s0";
|
matchConfig.Name = "enp6s0";
|
||||||
networkConfig = {
|
networkConfig.DHCP = "ipv4";
|
||||||
DHCP = "ipv4";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ modulesPath, ... }:
|
{ modulesPath, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
||||||
|
|
||||||
|
|
@ -21,23 +21,14 @@
|
||||||
networks."10-enp1s0" = {
|
networks."10-enp1s0" = {
|
||||||
matchConfig.Name = "enp1s0";
|
matchConfig.Name = "enp1s0";
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
networkConfig.DHCP = "no";
|
address = [ "188.245.223.145/32" ];
|
||||||
address = [
|
routes = lib.singleton {
|
||||||
"188.245.223.145/32"
|
|
||||||
"2a01:4f8:1c1b:468f::1/64"
|
|
||||||
];
|
|
||||||
routes = [
|
|
||||||
{
|
|
||||||
Gateway = "172.31.1.1";
|
Gateway = "172.31.1.1";
|
||||||
GatewayOnLink = true;
|
GatewayOnLink = true;
|
||||||
}
|
};
|
||||||
{ Gateway = "fe80::1"; }
|
|
||||||
];
|
|
||||||
dns = [
|
dns = [
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
"2606:4700:4700::1111"
|
|
||||||
"2001:4860:4860::8888"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ modulesPath, ... }:
|
{ modulesPath, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
||||||
|
|
||||||
|
|
@ -21,23 +21,14 @@
|
||||||
networks."10-enp1s0" = {
|
networks."10-enp1s0" = {
|
||||||
matchConfig.Name = "enp1s0";
|
matchConfig.Name = "enp1s0";
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
networkConfig.DHCP = "no";
|
address = [ "49.13.231.235/32" ];
|
||||||
address = [
|
routes = lib.singleton {
|
||||||
"49.13.231.235/32"
|
|
||||||
"2a01:4f8:1c1e:76fe::1/64"
|
|
||||||
];
|
|
||||||
routes = [
|
|
||||||
{
|
|
||||||
Gateway = "172.31.1.1";
|
Gateway = "172.31.1.1";
|
||||||
GatewayOnLink = true;
|
GatewayOnLink = true;
|
||||||
}
|
};
|
||||||
{ Gateway = "fe80::1"; }
|
|
||||||
];
|
|
||||||
dns = [
|
dns = [
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
"2606:4700:4700::1111"
|
|
||||||
"2001:4860:4860::8888"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ modulesPath, ... }:
|
{ modulesPath, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
||||||
|
|
||||||
|
|
@ -21,23 +21,14 @@
|
||||||
networks."10-enp1s0" = {
|
networks."10-enp1s0" = {
|
||||||
matchConfig.Name = "enp1s0";
|
matchConfig.Name = "enp1s0";
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
networkConfig.DHCP = "no";
|
address = [ "167.235.73.246/32" ];
|
||||||
address = [
|
routes = lib.singleton {
|
||||||
"167.235.73.246/32"
|
|
||||||
"2a01:4f8:c0c:3baf::1/64"
|
|
||||||
];
|
|
||||||
routes = [
|
|
||||||
{
|
|
||||||
Gateway = "172.31.1.1";
|
Gateway = "172.31.1.1";
|
||||||
GatewayOnLink = true;
|
GatewayOnLink = true;
|
||||||
}
|
};
|
||||||
{ Gateway = "fe80::1"; }
|
|
||||||
];
|
|
||||||
dns = [
|
dns = [
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
"2606:4700:4700::1111"
|
|
||||||
"2001:4860:4860::8888"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue