mirror of
https://github.com/hyprwm/hyprland-infra.git
synced 2025-05-12 21:30:36 +01:00
modules: apply statix lints
This commit is contained in:
parent
399d184e35
commit
14f2d11c75
1 changed files with 13 additions and 9 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue