diff --git a/readme.md b/readme.md index 5e5476c..474e83c 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ I used the existing windows 100MB boot partition and it fills up constantly. Have to purge old stuff a lot this is how: -- `find '/boot/loader/entries' -type f | head -n -4 | xargs -I {} rm {}; nix-collect-garbage -d; nixos-rebuild boot; echo; df` +- `find '/boot/loader/entries' -type f ! -name 'windows.conf' | head -n -4 | xargs -I {} rm {}; nix-collect-garbage -d; nixos-rebuild boot; echo; df` # Settings references: diff --git a/systems/_common/configuration.nix b/systems/_common/configuration.nix index 4e597e6..8c4a45a 100644 --- a/systems/_common/configuration.nix +++ b/systems/_common/configuration.nix @@ -69,7 +69,7 @@ in nn = "nvim --headless '+SessionDelete' +qa > /dev/null 2>&1 && nvim"; bat = "bat --theme Coldark-Dark"; cat = "bat --pager=never -p"; - nix-boot-clean = "find '/boot/loader/entries' -type f | head -n -4 | xargs -I {} rm {}; nix-collect-garbage -d; nixos-rebuild boot; echo; df"; + nix-boot-clean = "find '/boot/loader/entries' -type f ! -name 'windows.conf' | head -n -4 | xargs -I {} rm {}; nix-collect-garbage -d; nixos-rebuild boot; echo; df"; # general unix date_compact = "date +'%Y%m%d'";