diff options
author | Reuben D'Netto <rdnetto@gmail.com> | 2018-04-05 18:43:56 +1000 |
---|---|---|
committer | Reuben D'Netto <rdnetto@gmail.com> | 2018-04-12 09:39:14 +1000 |
commit | 42a84598fb7baacc991c03e228a07a536bc0624a (patch) | |
tree | a851974a590af5863bc2235e33a4670ce6c72a0c /nixos/doc/manual/configuration/linux-kernel.xml | |
parent | a683d2cd00780cf7d20caeeef44deb4cc60d2add (diff) | |
download | nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.tar nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.tar.gz nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.tar.bz2 nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.tar.lz nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.tar.xz nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.tar.zst nixlib-42a84598fb7baacc991c03e228a07a536bc0624a.zip |
Added cross-references to NixOS manual
Diffstat (limited to 'nixos/doc/manual/configuration/linux-kernel.xml')
-rw-r--r-- | nixos/doc/manual/configuration/linux-kernel.xml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/doc/manual/configuration/linux-kernel.xml b/nixos/doc/manual/configuration/linux-kernel.xml index 52be26d6024a..b9325629256a 100644 --- a/nixos/doc/manual/configuration/linux-kernel.xml +++ b/nixos/doc/manual/configuration/linux-kernel.xml @@ -10,7 +10,7 @@ the option <option>boot.kernelPackages</option>. For instance, this selects the Linux 3.10 kernel: <programlisting> -boot.kernelPackages = pkgs.linuxPackages_3_10; +<xref linkend="opt-boot.kernelPackages"/> = pkgs.linuxPackages_3_10; </programlisting> Note that this not only replaces the kernel, but also packages that are specific to the kernel version, such as the NVIDIA video drivers. @@ -45,23 +45,23 @@ is typically <literal>y</literal>, <literal>n</literal> or <para>Kernel modules for hardware devices are generally loaded automatically by <command>udev</command>. You can force a module to -be loaded via <option>boot.kernelModules</option>, e.g. +be loaded via <xref linkend="opt-boot.kernelModules"/>, e.g. <programlisting> -boot.kernelModules = [ "fuse" "kvm-intel" "coretemp" ]; +<xref linkend="opt-boot.kernelModules"/> = [ "fuse" "kvm-intel" "coretemp" ]; </programlisting> If the module is required early during the boot (e.g. to mount the root file system), you can use -<option>boot.initrd.extraKernelModules</option>: +<xref linkend="opt-boot.initrd.extraKernelModules"/>: <programlisting> -boot.initrd.extraKernelModules = [ "cifs" ]; +<xref linkend="opt-boot.initrd.extraKernelModules"/> = [ "cifs" ]; </programlisting> This causes the specified modules and their dependencies to be added to the initial ramdisk.</para> <para>Kernel runtime parameters can be set through -<option>boot.kernel.sysctl</option>, e.g. +<xref linkend="opt-boot.kernel.sysctl"/>, e.g. <programlisting> -boot.kernel.sysctl."net.ipv4.tcp_keepalive_time" = 120; +<xref linkend="opt-boot.kernel.sysctl"/>."net.ipv4.tcp_keepalive_time" = 120; </programlisting> sets the kernel’s TCP keepalive time to 120 seconds. To see the available parameters, run <command>sysctl -a</command>.</para> |