summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-08-04 23:02:40 +0200
committerGitHub <noreply@github.com>2022-08-04 23:02:40 +0200
commit04d94dc8ff19e2dc32fb0f127bdbc62e5c806343 (patch)
treeee2cdf3142ca9dbe83fdd7a730fc8370ef7fd1d0 /nixos/modules/system
parente686431c2979903b97e17dfdee73c2f7591007a5 (diff)
parent51adf865a37c8896cfc3c17ce33c36a0357f2195 (diff)
downloadnixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.tar
nixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.tar.gz
nixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.tar.bz2
nixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.tar.lz
nixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.tar.xz
nixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.tar.zst
nixpkgs-04d94dc8ff19e2dc32fb0f127bdbc62e5c806343.zip
Merge pull request #183897 from amarshall/networkd-fix-ipv6prefixes-example
nixos/networkd: Fix some invalid examples
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/networkd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index b006ce77454..ba335bcd769 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -1388,7 +1388,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
@@ -1399,7 +1399,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