diff options
author | Florian Jacob <projects+git@florianjacob.de> | 2017-07-05 13:48:18 +0200 |
---|---|---|
committer | Florian Jacob <projects+git@florianjacob.de> | 2017-07-05 13:48:18 +0200 |
commit | cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295 (patch) | |
tree | 33d2501e7363fa1cde31e2216d19730026fea62a | |
parent | a5a98f98a05ed73d45e52b9409b8a494d9ce072a (diff) | |
download | nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.tar nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.tar.gz nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.tar.bz2 nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.tar.lz nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.tar.xz nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.tar.zst nixpkgs-cd8a1a7ceb373a3bcf7894827a6e2e6bf39d0295.zip |
networkd: Allow new MulticastDNS setting
which gained an implementation in systemd v233
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index f96dde15361..b151b568892 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -94,7 +94,7 @@ let checkNetwork = checkUnitConfig "Network" [ (assertOnlyFields [ "Description" "DHCP" "DHCPServer" "IPForward" "IPMasquerade" "IPv4LL" "IPv4LLRoute" - "LLMNR" "Domains" "Bridge" "Bond" + "LLMNR" "MulticastDNS" "Domains" "Bridge" "Bond" ]) (assertValueOneOf "DHCP" ["both" "none" "v4" "v6"]) (assertValueOneOf "DHCPServer" boolValues) @@ -103,6 +103,7 @@ let (assertValueOneOf "IPv4LL" boolValues) (assertValueOneOf "IPv4LLRoute" boolValues) (assertValueOneOf "LLMNR" boolValues) + (assertValueOneOf "MulticastDNS" boolValues) ]; checkAddress = checkUnitConfig "Address" [ |