feat: add automatic garbage collection

This commit is contained in:
Guz
2024-10-01 18:41:40 -03:00
parent ee9d9c5c44
commit d73078e746
3 changed files with 15 additions and 0 deletions

View File

@@ -118,6 +118,11 @@
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
nix.package = pkgs.nixVersions.nix_2_21;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [];

View File

@@ -75,6 +75,11 @@
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.package = pkgs.nixVersions.nix_2_21;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [];

View File

@@ -95,6 +95,11 @@
# trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
nix.package = pkgs.nixVersions.nix_2_21;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
services.logind = {
lidSwitch = "suspend";