remove grub and syslinux from NixOS
This commit is contained in:
parent
966d756930
commit
d6cfce2feb
2 changed files with 14 additions and 0 deletions
13
nix/no-bootloaders.nix
Normal file
13
nix/no-bootloaders.nix
Normal 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;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./zfs-minimal.nix
|
./zfs-minimal.nix
|
||||||
|
./no-bootloaders.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# among others, this prevents carrying a stdenv with gcc in the image
|
# among others, this prevents carrying a stdenv with gcc in the image
|
||||||
|
|
Loading…
Reference in a new issue