NixOS-Configuration/common/bootloader/systemd-boot.nix

18 lines
466 B
Nix

{ pkgs, config, ... }:
{
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
editor = false;
configurationLimit = 5;
extraInstallCommands = ''
${pkgs.gnused}/bin/sed -i 's/^version Generation \([0-9]\+\).*$/version Generation \1/' /boot/loader/entries/nixos-generation-*
${pkgs.gnused}/bin/sed -i 's/^default .*$/default 00-arch.conf/' /boot/loader/loader.conf
'';
};
};
}