cache-nix-action icon indicating copy to clipboard operation
cache-nix-action copied to clipboard

[FEATURE] Support human-readable input values for `gc-max-store-size*`

Open deemp opened this issue 8 months ago • 0 comments

Description of a problem the feature solves

Currently, users have to specify the gc-max-store-size* inputs as the number of bytes. E.g., 1073741824 to mean 1 GB.

Readers have to mentally convert numbers to human-readable value.

Writers may unintentionally skip some digits in the number.

Describe the solution you'd like

For gc-max-store-size* inputs, support human-readable quantities like 1G, 900M.

Use the syntax supported by nix-store --gc --max-freed (link), except maybe Tibibytes.

deemp avatar Feb 23 '25 14:02 deemp