added NxACE (untested)
This commit is contained in:
@@ -9,49 +9,35 @@
|
||||
});
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
imports = if host == "NxNORTH" then [
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
] else [];
|
||||
|
||||
|
||||
config = if host == "NxXPS" then {
|
||||
config = if (host == "NxXPS" || host == "NxACE") then {
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
configurationLimit = 30;
|
||||
# device = "/dev/nvme0n1p1";
|
||||
device = "nodev";
|
||||
# useOSProber = true;
|
||||
efiSupport = true;
|
||||
# theme = pkgs.sleek-grub-theme;
|
||||
theme = grub-theme-ascii-diana;
|
||||
font = "${grub-theme-ascii-diana}/unicode.pf2";
|
||||
fontSize = 50;
|
||||
splashImage = null;
|
||||
|
||||
extraEntries = ''
|
||||
extraEntries = if host == "NxXPS" then ''
|
||||
menuentry 'Windows 11' --class windows --class os $menuentry_id_option 'osprober-efi-0A97-7A2D' {
|
||||
insmod part_gpt
|
||||
insmod fat
|
||||
search --no-floppy --fs-uuid --set=root 0A97-7A2D
|
||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||
}
|
||||
'';
|
||||
'' else '''';
|
||||
};
|
||||
} else {
|
||||
# boot.loader = {
|
||||
# systemd-boot = {
|
||||
# enable = true;
|
||||
# configurationLimit = 10;
|
||||
# };
|
||||
# timeout = 30;
|
||||
# };
|
||||
|
||||
|
||||
|
||||
# I have to boot with secureboot becasue of the chineese spyware called Vanguard
|
||||
|
||||
|
||||
# I have to boot with secureboot becasue of the chinese spyware called Vanguard
|
||||
environment.systemPackages = with pkgs; [
|
||||
sbctl
|
||||
];
|
||||
@@ -61,7 +47,7 @@
|
||||
pkiBundle = "/etc/secureboot";
|
||||
};
|
||||
|
||||
# we let lanzaboote install systemd-boot
|
||||
# let lanzaboote install systemd-boot
|
||||
loader.systemd-boot.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user