Skip to content

Kernel

boot.kernel.enable

Whether to enable the Linux kernel. This is useful for systemd-like containers which do not require a kernel. Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/kernel.nix

boot.kernel.randstructSeed

Provides a custom seed for the {var}RANDSTRUCT security option of the Linux kernel. Note that {var}RANDSTRUCT is only enabled in NixOS hardened kernels. Using a custom seed requires building the kernel and dependent packages locally, since this customization happens at build time.

Type: string

Default

""

Example

"my secret seed"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/kernel.nix

boot.kernel.sysctl

Runtime parameters of the Linux kernel, as set by {manpage}sysctl(8). Note that sysctl parameters names must be enclosed in quotes (e.g. "vm.swappiness" instead of vm.swappiness). The value of each parameter may be a string, integer, boolean, or null (signifying the option will not appear at all).

Type: attribute set of (sysctl option value)

Default

{ }

Example

{ "net.ipv4.tcp_syncookies" = false; "vm.swappiness" = 60; }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/sysctl.nix

boot.kernel.sysctl."net.core.rmem_max"

The maximum receive socket buffer size in bytes. In case of conflicting values, the highest will be used. Type: null or (unsigned integer, meaning >=0)

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/sysctl.nix

boot.kernel.sysctl."net.core.wmem_max"

The maximum send socket buffer size in bytes. In case of conflicting values, the highest will be used. Type: null or (unsigned integer, meaning >=0)

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/sysctl.nix