tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
sysctl: use literalExample in docs
Anders Papitto
10 years ago
58cc890d
cd7612b8
+3
-4
1 changed file
expand all
collapse all
unified
split
nixos
modules
config
sysctl.nix
+3
-4
nixos/modules/config/sysctl.nix
···
22
22
23
23
boot.kernel.sysctl = mkOption {
24
24
default = {};
25
25
-
example = {
26
26
-
"net.ipv4.tcp_syncookies" = false;
27
27
-
"vm.swappiness" = 60;
28
28
-
};
25
25
+
example = literalExample ''
26
26
+
{ "net.ipv4.tcp_syncookies" = false; "vm.swappiness" = 60; }
27
27
+
'';
29
28
type = types.attrsOf sysctlOption;
30
29
description = ''
31
30
Runtime parameters of the Linux kernel, as set by