diff options
author | Anders Papitto <anderspapitto@gmail.com> | 2015-12-30 10:10:39 -0800 |
---|---|---|
committer | Anders Papitto <anderspapitto@gmail.com> | 2015-12-30 10:22:04 -0800 |
commit | 58cc890d2be3b35f403a73d766473760613a78a7 (patch) | |
tree | c8d40aa09bb8082590c912a748c3f7b8326edac6 /nixos/modules/config/sysctl.nix | |
parent | cd7612b8419d6f02884927d56718fd41749fe0a1 (diff) |
sysctl: use literalExample in docs
Diffstat (limited to 'nixos/modules/config/sysctl.nix')
-rw-r--r-- | nixos/modules/config/sysctl.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nixos/modules/config/sysctl.nix b/nixos/modules/config/sysctl.nix index e83562a8356eb..61b02c5ffa6a6 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 |