mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
better ipv6 config
This commit is contained in:
parent
c9686ca54e
commit
1999030ee2
3 changed files with 14 additions and 5 deletions
|
@ -1,5 +1,14 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
services.radvd = {
|
||||||
|
enable = true;
|
||||||
|
config = ''
|
||||||
|
interface ens3 {
|
||||||
|
AdvSendAdvert on;
|
||||||
|
prefix 2a01:4f8:c012:49de::/64 {};
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
};
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "falkenstein-1";
|
hostName = "falkenstein-1";
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
|
@ -14,10 +23,8 @@
|
||||||
networks."10-wired" = {
|
networks."10-wired" = {
|
||||||
matchConfig.Name = "ens3";
|
matchConfig.Name = "ens3";
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "ipv4";
|
DHCP = "yes";
|
||||||
IPv6AcceptRA = "yes";
|
IPv6AcceptRA = "yes";
|
||||||
Address = "2a01:4f8:c012:49de::1/64";
|
|
||||||
Gateway = "fe80::1";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
|
|
||||||
virtualHosts."rfive.de" = {
|
virtualHosts."rfive.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
@ -46,6 +46,8 @@
|
||||||
linkConfig.RequiredForOnline = false;
|
linkConfig.RequiredForOnline = false;
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
|
IPv6AcceptRA = "yes";
|
||||||
|
IPv6PrivacyExtensions = "yes";
|
||||||
};
|
};
|
||||||
dhcpV4Config = {
|
dhcpV4Config = {
|
||||||
RouteMetric = 10;
|
RouteMetric = 10;
|
||||||
|
@ -75,7 +77,7 @@
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
IgnoreCarrierLoss = "3s";
|
IgnoreCarrierLoss = "3s";
|
||||||
IPv6AcceptRA = "yes";
|
IPv6AcceptRA = "yes";
|
||||||
#IPv6PrefixDelegation = "dhcpv6";
|
IPv6PrivacyExtensions = "yes";
|
||||||
};
|
};
|
||||||
dhcpV4Config = {
|
dhcpV4Config = {
|
||||||
RouteMetric = 20;
|
RouteMetric = 20;
|
||||||
|
|
Loading…
Reference in a new issue