mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/sysctl: cleanup
- Use `options = {` instead of repeating `options` for every option - Change the description of "net.core.rmem_max" slightly to match the kernel documentation
This commit is contained in:
parent
e2b40f6834
commit
8cdabf9cf8
1 changed files with 11 additions and 9 deletions
|
@ -31,16 +31,18 @@ in
|
||||||
};
|
};
|
||||||
in types.submodule {
|
in types.submodule {
|
||||||
freeformType = types.attrsOf sysctlOption;
|
freeformType = types.attrsOf sysctlOption;
|
||||||
options."net.core.rmem_max" = mkOption {
|
options = {
|
||||||
type = types.nullOr highestValueType;
|
"net.core.rmem_max" = mkOption {
|
||||||
default = null;
|
type = types.nullOr highestValueType;
|
||||||
description = lib.mdDoc "The maximum socket receive buffer size. In case of conflicting values, the highest will be used.";
|
default = null;
|
||||||
};
|
description = lib.mdDoc "The maximum receive socket buffer size in bytes. In case of conflicting values, the highest will be used.";
|
||||||
|
};
|
||||||
|
|
||||||
options."net.core.wmem_max" = mkOption {
|
"net.core.wmem_max" = mkOption {
|
||||||
type = types.nullOr highestValueType;
|
type = types.nullOr highestValueType;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc "The maximum socket send buffer size. In case of conflicting values, the highest will be used.";
|
description = lib.mdDoc "The maximum send socket buffer size in bytes. In case of conflicting values, the highest will be used.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
default = {};
|
default = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue