From a9fbd07f56cb6f7937fd03e8cefaf577748635f6 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Sat, 30 Jul 2022 00:44:02 -0400 Subject: nixos/networkd: Fix example for ipv6Prefixes option The example was not valid, and would raise an error. --- nixos/modules/system/boot/networkd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 357c2bab993..34d9c92dd6c 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -1397,7 +1397,7 @@ let ipv6Prefixes = mkOption { default = []; - example = [ { AddressAutoconfiguration = true; OnLink = true; } ]; + example = [ { ipv6PrefixConfig = { AddressAutoconfiguration = true; OnLink = true; }; } ]; type = with types; listOf (submodule ipv6PrefixOptions); description = '' A list of ipv6Prefix sections to be added to the unit. See -- cgit 1.4.1 From 51adf865a37c8896cfc3c17ce33c36a0357f2195 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Sat, 30 Jul 2022 00:44:02 -0400 Subject: nixos/networkd: Fix example for dhcpServerStaticLeaseOptions option The example was not valid, and would raise an error. --- nixos/modules/system/boot/networkd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 34d9c92dd6c..66b8323ae01 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -1386,7 +1386,7 @@ let dhcpServerStaticLeases = mkOption { default = []; - example = [ { MACAddress = "65:43:4a:5b:d8:5f"; Address = "192.168.1.42"; } ]; + example = [ { dhcpServerStaticLeaseConfig = { MACAddress = "65:43:4a:5b:d8:5f"; Address = "192.168.1.42"; }; } ]; type = with types; listOf (submodule dhcpServerStaticLeaseOptions); description = '' A list of DHCPServerStaticLease sections to be added to the unit. See -- cgit 1.4.1