From 39ae2babceff26ce76669d9a5352815176ebd54b Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Fri, 22 Dec 2023 20:28:56 +0000 Subject: [PATCH] nixos/networkd: allow KeepCarrier in tunConfig and tapConfig This is added in systemd.netdev in 252, see https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#KeepCarrier= --- nixos/modules/system/boot/networkd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index f236a4c005ad6..46104a2bdf05d 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -117,10 +117,12 @@ let "VNetHeader" "User" "Group" + "KeepCarrier" ]) (assertValueOneOf "MultiQueue" boolValues) (assertValueOneOf "PacketInfo" boolValues) (assertValueOneOf "VNetHeader" boolValues) + (assertValueOneOf "KeepCarrier" boolValues) ]; # See https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVTAP%5D%20Section%20Options