diff --git a/nix/no-bootloaders.nix b/nix/no-bootloaders.nix index 0e1a6e0..b8b45a5 100644 --- a/nix/no-bootloaders.nix +++ b/nix/no-bootloaders.nix @@ -1,8 +1,7 @@ -{ - # HACK: Drop this once, we have https://github.com/NixOS/nixpkgs/pull/312863 merged - - # Both syslinux and grub also reference perl - nixpkgs.overlays = [ +{ lib, ... }: { + # HACK: Drop this, once we have 24.11 everywhere + nixpkgs.overlays = lib.optionals (lib.versionOlder lib.version "24.11pre") [ + # Both syslinux and grub also reference perl (final: prev: { # we don't need grub: save ~ 60MB grub2 = prev.coreutils;