mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Support unit prefixes in configuration settings
E.g. you can now say `--min-free 1G`.
This commit is contained in:
parent
d8d20307a8
commit
79c7d6205c
4 changed files with 19 additions and 6 deletions
|
@ -66,5 +66,12 @@ Configuration options can be set on the command line, overriding the values set
|
|||
|
||||
The `extra-` prefix is supported for settings that take a list of items (e.g. `--extra-trusted users alice` or `--option extra-trusted-users alice`).
|
||||
|
||||
## Integer settings
|
||||
|
||||
Settings that have an integer type support the suffixes `K`, `M`, `G`
|
||||
and `T`. These cause the specified value to be multiplied by 2^10,
|
||||
2^20, 2^30 and 2^40, respectively. For instance, `--min-free 1M` is
|
||||
equivalent to `--min-free 1048576`.
|
||||
|
||||
# Available settings
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue