modules/shared/builder: fix max-freed size
This commit is contained in:
parent
357d8bc162
commit
352152dbd7
1 changed files with 1 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
asGB = size: toString (size * 1024 * 1024 * 1024);
|
||||
in
|
||||
{
|
||||
nix.gc.options = ''
|
||||
--max-freed "$((${asGB 50} * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"
|
||||
--max-freed "$((50 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue