remove grub and syslinux from NixOS

This commit is contained in:
Jörg Thalheim 2024-05-19 13:07:31 +02:00 committed by mergify[bot]
parent 966d756930
commit d6cfce2feb
2 changed files with 14 additions and 0 deletions

13
nix/no-bootloaders.nix Normal file
View file

@ -0,0 +1,13 @@
{
# HACK: Drop this once, we have https://github.com/NixOS/nixpkgs/pull/312863 merged
# Both syslinux and grub also reference perl
nixpkgs.overlays = [
(final: prev: {
# we don't need grub: save ~ 60MB
grub2 = prev.coreutils;
grub2_efi = prev.coreutils;
syslinux = prev.coreutils;
})
];
}

View file

@ -11,6 +11,7 @@
imports = [
./zfs-minimal.nix
./no-bootloaders.nix
];
# among others, this prevents carrying a stdenv with gcc in the image