From 8e489018d334c5825736161655ca533880c59403 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Sun, 9 Jun 2019 19:06:07 +0200 Subject: [PATCH] systemd-networkd: Only generate [Match] if present --- nixos/modules/system/boot/networkd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 63a6f7fbe09..882db9130ea 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -669,7 +669,7 @@ let }; }; - commonMatchText = def: '' + commonMatchText = def: optionalString (def.matchConfig != {}) '' [Match] ${attrsToSection def.matchConfig} '';