fix network setting on vps
This commit is contained in:
parent
17c7753e37
commit
693f34eadc
@ -11,6 +11,7 @@ in {
|
|||||||
nftables.enable = false; # incompatible with tailscale and docker
|
nftables.enable = false; # incompatible with tailscale and docker
|
||||||
hostName = config.device;
|
hostName = config.device;
|
||||||
domain = domain;
|
domain = domain;
|
||||||
|
nameservers = with interfaces.main'; IPv4.dns ++ lib.optionals hasIPv6 IPv6.dns;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network = with interfaces.main'; {
|
systemd.network = with interfaces.main'; {
|
||||||
@ -33,12 +34,6 @@ in {
|
|||||||
"fc00::1/64"
|
"fc00::1/64"
|
||||||
];
|
];
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
networkConfig = {
|
|
||||||
DHCPServer = true;
|
|
||||||
IPForward = true;
|
|
||||||
# IPv6PrivacyExtensions = "kernel";
|
|
||||||
DNS = IPv4.dns ++ lib.optionals hasIPv6 IPv6.dns;
|
|
||||||
};
|
|
||||||
routes = [{
|
routes = [{
|
||||||
routeConfig.Gateway = IPv4.gateway;
|
routeConfig.Gateway = IPv4.gateway;
|
||||||
routeConfig.GatewayOnLink = true;
|
routeConfig.GatewayOnLink = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user