summaryrefslogtreecommitdiffstats
path: root/nixos/lib/systemd-network-units.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/lib/systemd-network-units.nix')
-rw-r--r--nixos/lib/systemd-network-units.nix22
1 files changed, 11 insertions, 11 deletions
diff --git a/nixos/lib/systemd-network-units.nix b/nixos/lib/systemd-network-units.nix
index ae581495772a..d15485240bd0 100644
--- a/nixos/lib/systemd-network-units.nix
+++ b/nixos/lib/systemd-network-units.nix
@@ -63,13 +63,13 @@ in {
${attrsToSection def.l2tpConfig}
'' + flip concatMapStrings def.l2tpSessions (x: ''
[L2TPSession]
- ${attrsToSection x.l2tpSessionConfig}
+ ${attrsToSection x}
'') + optionalString (def.wireguardConfig != { }) ''
[WireGuard]
${attrsToSection def.wireguardConfig}
'' + flip concatMapStrings def.wireguardPeers (x: ''
[WireGuardPeer]
- ${attrsToSection x.wireguardPeerConfig}
+ ${attrsToSection x}
'') + optionalString (def.bondConfig != { }) ''
[Bond]
${attrsToSection def.bondConfig}
@@ -122,13 +122,13 @@ in {
${concatStringsSep "\n" (map (s: "Xfrm=${s}") def.xfrm)}
'' + "\n" + flip concatMapStrings def.addresses (x: ''
[Address]
- ${attrsToSection x.addressConfig}
+ ${attrsToSection x}
'') + flip concatMapStrings def.routingPolicyRules (x: ''
[RoutingPolicyRule]
- ${attrsToSection x.routingPolicyRuleConfig}
+ ${attrsToSection x}
'') + flip concatMapStrings def.routes (x: ''
[Route]
- ${attrsToSection x.routeConfig}
+ ${attrsToSection x}
'') + optionalString (def.dhcpV4Config != { }) ''
[DHCPv4]
${attrsToSection def.dhcpV4Config}
@@ -149,22 +149,22 @@ in {
${attrsToSection def.ipv6SendRAConfig}
'' + flip concatMapStrings def.ipv6Prefixes (x: ''
[IPv6Prefix]
- ${attrsToSection x.ipv6PrefixConfig}
+ ${attrsToSection x}
'') + flip concatMapStrings def.ipv6RoutePrefixes (x: ''
[IPv6RoutePrefix]
- ${attrsToSection x.ipv6RoutePrefixConfig}
+ ${attrsToSection x}
'') + flip concatMapStrings def.dhcpServerStaticLeases (x: ''
[DHCPServerStaticLease]
- ${attrsToSection x.dhcpServerStaticLeaseConfig}
+ ${attrsToSection x}
'') + optionalString (def.bridgeConfig != { }) ''
[Bridge]
${attrsToSection def.bridgeConfig}
'' + flip concatMapStrings def.bridgeFDBs (x: ''
[BridgeFDB]
- ${attrsToSection x.bridgeFDBConfig}
+ ${attrsToSection x}
'') + flip concatMapStrings def.bridgeMDBs (x: ''
[BridgeMDB]
- ${attrsToSection x.bridgeMDBConfig}
+ ${attrsToSection x}
'') + optionalString (def.lldpConfig != { }) ''
[LLDP]
${attrsToSection def.lldpConfig}
@@ -251,7 +251,7 @@ in {
${attrsToSection def.quickFairQueueingConfigClass}
'' + flip concatMapStrings def.bridgeVLANs (x: ''
[BridgeVLAN]
- ${attrsToSection x.bridgeVLANConfig}
+ ${attrsToSection x}
'') + def.extraConfig;
}