diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-01-08 19:36:00 +0100 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2020-05-01 13:33:53 +0200 |
commit | 7b78f0f098aebdeb6316fc066a4cdeaf62e37abd (patch) | |
tree | 75ba386fe01d1e8a80cbf378449d5a1ba79c64ef /nixos/modules/system/boot/networkd.nix | |
parent | 0bdc8d7a58a38e4159bbd52a64b8341a98615b8b (diff) | |
download | nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.tar nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.tar.gz nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.tar.bz2 nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.tar.lz nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.tar.xz nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.tar.zst nixpkgs-7b78f0f098aebdeb6316fc066a4cdeaf62e37abd.zip |
nixos/networkd: remove CriticalConnection= fields in favor of KeepConnection
Systemd upstream has deprecated CriticalConnection with v244 in favor of KeepConnection as that seems to be more flexible: The CriticalConnection= setting in .network files is now deprecated, and replaced by a new KeepConfiguration= setting which allows more detailed configuration of the IP configuration to keep in place.
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 80c8428c63f..7b55126b1cf 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -205,7 +205,7 @@ let "IPv6HopLimit" "IPv4ProxyARP" "IPv6ProxyNDP" "IPv6ProxyNDPAddress" "IPv6PrefixDelegation" "IPv6MTUBytes" "Bridge" "Bond" "VRF" "VLAN" "IPVLAN" "MACVLAN" "VXLAN" "Tunnel" "ActiveSlave" "PrimarySlave" - "ConfigureWithoutCarrier" "Xfrm" + "ConfigureWithoutCarrier" "Xfrm" "KeepConfiguration" ]) # Note: For DHCP the values both, none, v4, v6 are deprecated (assertValueOneOf "DHCP" ["yes" "no" "ipv4" "ipv6" "both" "none" "v4" "v6"]) @@ -228,6 +228,7 @@ let (assertValueOneOf "ActiveSlave" boolValues) (assertValueOneOf "PrimarySlave" boolValues) (assertValueOneOf "ConfigureWithoutCarrier" boolValues) + (assertValueOneOf "KeepConfiguration" (boolValues ++ ["static" "dhcp-on-stop" "dhcp"])) ]; checkAddress = checkUnitConfig "Address" [ @@ -277,7 +278,7 @@ let checkDhcp = checkUnitConfig "DHCP" [ (assertOnlyFields [ "UseDNS" "RoutesToDNS" "UseNTP" "UseMTU" "Anonymize" "SendHostname" "UseHostname" - "Hostname" "UseDomains" "UseRoutes" "UseTimezone" "CriticalConnection" + "Hostname" "UseDomains" "UseRoutes" "UseTimezone" "ClientIdentifier" "VendorClassIdentifier" "UserClass" "DUIDType" "DUIDRawData" "IAID" "RequestBroadcast" "RouteMetric" "RouteTable" "ListenPort" "RapidCommit" @@ -292,7 +293,6 @@ let (assertValueOneOf "UseDomains" ["yes" "no" "route"]) (assertValueOneOf "UseRoutes" boolValues) (assertValueOneOf "UseTimezone" boolValues) - (assertValueOneOf "CriticalConnection" boolValues) (assertValueOneOf "RequestBroadcast" boolValues) (assertInt "RouteTable") (assertMinimum "RouteTable" 0) |