modules: apply statix lints

This commit is contained in:
NotAShelf 2024-08-18 16:33:48 +03:00
parent 399d184e35
commit 14f2d11c75
No known key found for this signature in database
GPG key ID: AF26552424E53993

View file

@ -2,18 +2,22 @@
asGB = size: toString (size * 1024 * 1024 * 1024);
in {
nix = {
# Hard-link duplicated files
settings.auto-optimise-store = true;
# auto-free the /nix/store
settings.min-free = asGB 10;
settings.max-free = asGB 50;
# useful for ad-hoc nix-shell's for debugging
# use mkForce to avoid search path warnings with nix-darwin
nixPath = pkgs.lib.mkForce ["nixpkgs=${pkgs.path}"];
gc.automatic = true;
gc.options = pkgs.lib.mkDefault "--delete-older-than 14d";
# Hard-link duplicated files
settings = {
auto-optimise-store = true;
# auto-free the /nix/store
min-free = asGB 10;
max-free = asGB 50;
};
gc = {
automatic = true;
options = pkgs.lib.mkDefault "--delete-older-than 14d";
};
};
}