Skip to content

Commit

Permalink
nix: auto gc tweaking
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <lucas59356@gmail.com>
  • Loading branch information
lucasew committed Jan 6, 2025
1 parent b30d818 commit 4f7aadd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/nodes/bootstrap/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ in
};

settings = {
min-free = lib.mkDefault (5 * 1024 * 1024 * 1024);
max-free = lib.mkDefault (100 * 1024 * 1024 * 1024);
min-free = lib.mkDefault (5 * 1024 * 1024 * 1024); # 5GB
max-free = lib.mkDefault (100 * 1024 * 1024 * 1024); # 100GB
trusted-users = [
username
"@wheel"
Expand Down
2 changes: 2 additions & 0 deletions nix/nodes/whiterun/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ in
options = [ "bind" ];
};

nix.settings.min-free = 50 * 1024 * 1024 * 1024; # 50GB

services.nginx.enable = true;

programs.ccache.enable = true;
Expand Down

0 comments on commit 4f7aadd

Please sign in to comment.