Bootloader: Difference between revisions
imported>Samueldr m Adds a note about configurationlimit and grub. |
imported>Gnidorah No edit summary |
||
Line 21: | Line 21: | ||
sudo nixos-rebuild boot | sudo nixos-rebuild boot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== How to deal with full /boot in case of EFI === | |||
systemd-boot (gummiboot) can't put kernels, initrd and other stuff on root partition, so switch to grub | |||
{{file|/etc/nixos/hardware-configuration.nix|nix|<nowiki> | |||
fileSystems."/boot/efi" = ... | |||
</nowiki>}} | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
boot.loader = { | |||
efi = { | |||
canTouchEfiVariables = true; | |||
efiSysMountPoint = "/boot/efi"; | |||
}; | |||
grub = { | |||
efiSupport = true; | |||
#efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work for your system | |||
device = "nodev"; | |||
}; | |||
}; | |||
</nowiki>}} | |||
=== Limiting amount of entries with grub === | === Limiting amount of entries with grub === |