mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2025-01-15 13:26:38 +00:00
infect: fix IPv6 networking configuration
This commit is contained in:
parent
62dfb006e4
commit
cf36eed8f2
|
@ -286,15 +286,15 @@ EOF
|
||||||
predictable_inames="usePredictableInterfaceNames = lib.mkForce true;"
|
predictable_inames="usePredictableInterfaceNames = lib.mkForce true;"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local defaultGateway6=${gateway6:+defaultGateway6 = \{ address = "${gateway6}"; interface = "${eth0_name}"; \};}
|
local defaultGateway6=${gateway6:+defaultGateway6 = \{ address = \"${gateway6}\"; interface = \"${eth0_name}\"; \};}
|
||||||
local ipv6routes=${gateway6:+ipv6.routes = \[ \{ address = "${gateway6}"; prefixLength = 128; \} \];}
|
local ipv6routes=${gateway6:+ipv6.routes = \[ \{ address = \"${gateway6}\"; prefixLength = 128; \} \];}
|
||||||
cat << EOF
|
cat << EOF
|
||||||
# Networking configuration was populated by nixos-infect with the networking
|
# Networking configuration was populated by nixos-infect with the networking
|
||||||
# details gathered from the running system.
|
# details gathered from the running system.
|
||||||
networking = {
|
networking = {
|
||||||
defaultGateway = "${gateway}";`
|
defaultGateway = "${gateway}";`
|
||||||
`${defaultGateway6:+
|
`${defaultGateway6:+
|
||||||
defaultGateway6}
|
$defaultGateway6}
|
||||||
dhcpcd.enable = false;
|
dhcpcd.enable = false;
|
||||||
$predictable_inames
|
$predictable_inames
|
||||||
interfaces = {
|
interfaces = {
|
||||||
|
|
Loading…
Reference in a new issue