git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62902 from rvolosatovs/fix/systemd-networkd-match

systemd-networkd: Only generate [Match] if present

commitc66fe5a16125610359a5d5a9c11382c1ca3c61e3 authorFranz Pletz <fpletz@fnordicwalking.de> dateSun 9 Jun 2019, 23:08 (7 years ago) parent6a153778e48901
1 file changed+1−1
nixos/modules/system/boot/networkd.nix+1−1
nixos/modules/system/boot/networkd.nix+1−1
@@ -669,7 +669,7 @@ let
669669 };
670670 };
671671
672− commonMatchText = def: ''
672+ commonMatchText = def: optionalString (def.matchConfig != {}) ''
673673 [Match]
674674 ${attrsToSection def.matchConfig}
675675 '';