diff options
Diffstat (limited to 'nixpkgs/nixos/modules/config/zram.nix')
-rw-r--r-- | nixpkgs/nixos/modules/config/zram.nix | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nixpkgs/nixos/modules/config/zram.nix b/nixpkgs/nixos/modules/config/zram.nix index 1f513b7e4dae..34e80df47a40 100644 --- a/nixpkgs/nixos/modules/config/zram.nix +++ b/nixpkgs/nixos/modules/config/zram.nix @@ -40,21 +40,21 @@ in enable = mkOption { default = false; type = types.bool; - description = '' + description = lib.mdDoc '' Enable in-memory compressed devices and swap space provided by the zram kernel module. - See <link xlink:href="https://www.kernel.org/doc/Documentation/blockdev/zram.txt"> + See [ https://www.kernel.org/doc/Documentation/blockdev/zram.txt - </link>. + ](https://www.kernel.org/doc/Documentation/blockdev/zram.txt). ''; }; numDevices = mkOption { default = 1; type = types.int; - description = '' + description = lib.mdDoc '' Number of zram devices to create. See also - <literal>zramSwap.swapDevices</literal> + `zramSwap.swapDevices` ''; }; @@ -62,20 +62,20 @@ in default = null; example = 1; type = with types; nullOr int; - description = '' + description = lib.mdDoc '' Number of zram devices to be used as swap. Must be - <literal><= zramSwap.numDevices</literal>. - Default is same as <literal>zramSwap.numDevices</literal>, recommended is 1. + `<= zramSwap.numDevices`. + Default is same as `zramSwap.numDevices`, recommended is 1. ''; }; memoryPercent = mkOption { default = 50; type = types.int; - description = '' + description = lib.mdDoc '' Maximum amount of memory that can be used by the zram swap devices (as a percentage of your total memory). Defaults to 1/2 of your total - RAM. Run <literal>zramctl</literal> to check how good memory is + RAM. Run `zramctl` to check how good memory is compressed. ''; }; @@ -83,7 +83,7 @@ in memoryMax = mkOption { default = null; type = with types; nullOr int; - description = '' + description = lib.mdDoc '' Maximum total amount of memory (in bytes) that can be used by the zram swap devices. ''; @@ -92,7 +92,7 @@ in priority = mkOption { default = 5; type = types.int; - description = '' + description = lib.mdDoc '' Priority of the zram swap devices. It should be a number higher than the priority of your disk-based swap devices (so that the system will fill the zram swap devices before falling back to disk swap). |