about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2023-11-17 13:08:18 -0800
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-11-18 08:43:21 +0100
commitbc7a939ced9c33e424478a41aba57f2f5864229b (patch)
tree1a4cdecec9fecbdf5d7b74f40674b0f7967f099c /nixos/lib
parent7686f24675e861ceb05bc7539a549bd4bd72dfcd (diff)
nixos/networkd: add [IPVLAN] and [IPVTAP] configuration options to systemd.netdev files
[IPVLAN](https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVLAN%5D%20Section%20Options)
[IPVTAP](https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVTAP%5D%20Section%20Options)
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/systemd-network-units.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/lib/systemd-network-units.nix b/nixos/lib/systemd-network-units.nix
index 8bda1a8bfdcf6..1d5f823f3678d 100644
--- a/nixos/lib/systemd-network-units.nix
+++ b/nixos/lib/systemd-network-units.nix
@@ -23,6 +23,12 @@ in {
     '' + optionalString (def.vlanConfig != { }) ''
       [VLAN]
       ${attrsToSection def.vlanConfig}
+    '' + optionalString (def.ipvlanConfig != { }) ''
+      [IPVLAN]
+      ${attrsToSection def.ipvlanConfig}
+    '' + optionalString (def.ipvtapConfig != { }) ''
+      [IPVTAP]
+      ${attrsToSection def.ipvtapConfig}
     '' + optionalString (def.macvlanConfig != { }) ''
       [MACVLAN]
       ${attrsToSection def.macvlanConfig}