Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander 221f937cb4 infect:config:sha1: fix deSEC
continuous-integration/drone/push Build is passing Details
2024-03-12 20:00:03 +04:00
Alexander cf36eed8f2 infect: fix IPv6 networking configuration 2024-03-12 19:44:11 +04:00
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
: "${VOLUME_DEV_PATH:=}"
: "${STAGING_ACME:=false}"
readonly CONFIG_URL="https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/f2587a6b1e2a07d25e7fa75133d81d5784a3822b.tar.gz"
readonly CONFIG_URL="https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/75eba2cf8dd3f992c501ea36eeec43b35605a3a3.tar.gz"
readonly NIX_VERSION="2.18.1"
readonly NL=$'\n'
@ -286,15 +286,15 @@ EOF
predictable_inames="usePredictableInterfaceNames = lib.mkForce true;"
fi
local defaultGateway6=${gateway6:+defaultGateway6 = \{ address = "${gateway6}"; interface = "${eth0_name}"; \};}
local ipv6routes=${gateway6:+ipv6.routes = \[ \{ address = "${gateway6}"; prefixLength = 128; \} \];}
local defaultGateway6=${gateway6:+defaultGateway6 = \{ address = \"${gateway6}\"; interface = \"${eth0_name}\"; \};}
local ipv6routes=${gateway6:+ipv6.routes = \[ \{ address = \"${gateway6}\"; prefixLength = 128; \} \];}
cat << EOF
# Networking configuration was populated by nixos-infect with the networking
# details gathered from the running system.
networking = {
defaultGateway = "${gateway}";`
`${defaultGateway6:+
defaultGateway6}
$defaultGateway6}
dhcpcd.enable = false;
$predictable_inames
interfaces = {