I have
nix = {
gc = {
automatic = true;
options = "--max-freed 1G --delete-older-than 7d";
};
};
in my configuration.nix. I think this should clean up my old generations. And yet, I still have a generation from over the week ago:
$ ls /boot/loader/entries/
.rwxr-xr-x 447 root 29 Apr 16:27 nixos-generation-215.conf
.rwxr-xr-x 447 root 29 Apr 16:27 nixos-generation-216.conf
.rwxr-xr-x 447 root 29 Apr 16:27 nixos-generation-217.conf
.rwxr-xr-x 447 root 29 Apr 16:27 nixos-generation-218.conf
.rwxr-xr-x 468 root 29 Apr 16:27 nixos-generation-219.conf
$ bat /boot/loader/entries/nixos-generation-215.conf
title NixOS
version Generation 215 NixOS 23.05.20230417.f00994e, Linux Kernel 6.2.11, Built on 2023-04-18
what I am missing? Why this entry is not deleted from the bootloader menu?