about summary refs log tree commit diff
path: root/nixos/modules/config/sysctl.nix
diff options
context:
space:
mode:
authorAnders Papitto <anderspapitto@gmail.com>2015-12-30 10:10:39 -0800
committerAnders Papitto <anderspapitto@gmail.com>2015-12-30 10:22:04 -0800
commit58cc890d2be3b35f403a73d766473760613a78a7 (patch)
treec8d40aa09bb8082590c912a748c3f7b8326edac6 /nixos/modules/config/sysctl.nix
parentcd7612b8419d6f02884927d56718fd41749fe0a1 (diff)
sysctl: use literalExample in docs
Diffstat (limited to 'nixos/modules/config/sysctl.nix')
-rw-r--r--nixos/modules/config/sysctl.nix7
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