diff --git a/configuration.nix b/configuration.nix index dc86b8b..181ad6f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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;