Automate nix garbage collection

This commit is contained in:
Weckyy702
2026-03-11 18:53:14 +01:00
parent 9ff0b329ec
commit 5f41ff2b1b

View File

@@ -16,8 +16,11 @@
## Boot
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub = {
enable = true;
device = "/dev/nvme0n1";
configurationLimit = 10;
};
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
@@ -54,6 +57,13 @@
"nix-command"
"flakes"
];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;