nixos-config/config/systemd-boot.nix
Charlotte 🦝 Delenk c027f9c66d
Some checks failed
Hydra packages.aarch64-linux.element-desktop Hydra build #26846 of nixos-config:pr618:packages.aarch64-linux.element-desktop
Hydra packages.x86_64-linux.element-web Hydra build #26849 of nixos-config:pr618:packages.x86_64-linux.element-web
Hydra packages.x86_64-linux.element-desktop Hydra build #26848 of nixos-config:pr618:packages.x86_64-linux.element-desktop
Hydra nixosConfigurations.thinkrac Hydra build #26861 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.rainbow-resort Hydra build #26860 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.pc-installer Hydra build #26859 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.oracle-installer Hydra build #26858 of nixos-config:pr618:nixosConfigurations.oracle-installer
Hydra nixosConfigurations.not522-installer Hydra build #27079 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.not522 Hydra build #27078 of nixos-config:pr618:nixosConfigurations.not522
use targetPlatform.system for x86 checks
2024-11-20 10:03:08 +01:00

14 lines
339 B
Nix

{ pkgs, ... }:
let
isx86 = pkgs.targetPlatform.system == "x86_64-linux";
in
{
boot.loader.systemd-boot = {
enable = true;
memtest86.enable = isx86;
netbootxyz.enable = isx86;
edk2-uefi-shell.enable = isx86;
};
boot.loader.generic-extlinux-compatible.enable = false;
boot.loader.efi.canTouchEfiVariables = true;
}