sysctl: use literalExample in docs
This commit is contained in:
parent
cd7612b841
commit
58cc890d2b
@ -22,10 +22,9 @@ in
|
|||||||
|
|
||||||
boot.kernel.sysctl = mkOption {
|
boot.kernel.sysctl = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
example = {
|
example = literalExample ''
|
||||||
"net.ipv4.tcp_syncookies" = false;
|
{ "net.ipv4.tcp_syncookies" = false; "vm.swappiness" = 60; }
|
||||||
"vm.swappiness" = 60;
|
'';
|
||||||
};
|
|
||||||
type = types.attrsOf sysctlOption;
|
type = types.attrsOf sysctlOption;
|
||||||
description = ''
|
description = ''
|
||||||
Runtime parameters of the Linux kernel, as set by
|
Runtime parameters of the Linux kernel, as set by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user