From 58cc890d2be3b35f403a73d766473760613a78a7 Mon Sep 17 00:00:00 2001 From: Anders Papitto Date: Wed, 30 Dec 2015 10:10:39 -0800 Subject: sysctl: use literalExample in docs --- nixos/modules/config/sysctl.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/config/sysctl.nix b/nixos/modules/config/sysctl.nix index e83562a8356..61b02c5ffa6 100644 --- a/nixos/modules/config/sysctl.nix +++ b/nixos/modules/config/sysctl.nix @@ -22,10 +22,9 @@ in boot.kernel.sysctl = mkOption { default = {}; - example = { - "net.ipv4.tcp_syncookies" = false; - "vm.swappiness" = 60; - }; + example = literalExample '' + { "net.ipv4.tcp_syncookies" = false; "vm.swappiness" = 60; } + ''; type = types.attrsOf sysctlOption; description = '' Runtime parameters of the Linux kernel, as set by -- cgit 1.4.1