diff options
author | Linus Heckemann <git@sphalerite.org> | 2020-12-17 22:59:49 +0100 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2020-12-17 23:01:08 +0100 |
commit | 834cc5d5fa42cc6fd2825696370b9cb5572a134c (patch) | |
tree | 7e41aace3e499da5b994859dba8dffbd2c82112c /nixos | |
parent | 3136e49b8ef0c40f33f618ee56f1c8959e6cbf88 (diff) | |
download | nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.tar nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.tar.gz nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.tar.bz2 nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.tar.lz nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.tar.xz nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.tar.zst nixpkgs-834cc5d5fa42cc6fd2825696370b9cb5572a134c.zip |
nixos/initrd: docbookise "compressor" description
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 3af80ed20cc..86bfde6349c 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -518,9 +518,11 @@ in description = '' The compressor to use on the initrd image. May be any of: - - A string representing a command available in stdenv, e.g. "xz"; - - A function which, given the nixpkgs package set, returns the path to a compressor tool, e.g. pkgs: "''${pkgs.pigz}/bin/pigz" - - (not recommended, because it does not work when cross-compiling) the full path to a compressor tool, e.g. "''${pkgs.pigz}/bin/pigz" + <itemizedlist> + <listitem><para>The name of one of the predefined compressors, see <filename>pkgs/build-support/kernel/initrd-compressor-meta.nix</filename> for the definitions.</para></listitem> + <listitem><para>A function which, given the nixpkgs package set, returns the path to a compressor tool, e.g. <literal>pkgs: "''${pkgs.pigz}/bin/pigz"</literal></para></listitem> + <listitem><para>(not recommended, because it does not work when cross-compiling) the full path to a compressor tool, e.g. <literal>"''${pkgs.pigz}/bin/pigz"</literal></para></listitem> + </itemizedlist> The given program should read data from stdin and write it to stdout compressed. ''; |