Fix boot for gamepc
This commit is contained in:
parent
a58aa96a60
commit
3e3f589e4f
1 changed files with 36 additions and 18 deletions
|
@ -8,11 +8,27 @@
|
||||||
|
|
||||||
networking.hostName = "gamepc";
|
networking.hostName = "gamepc";
|
||||||
|
|
||||||
boot = {
|
# boot = {
|
||||||
loader = {
|
# loader = {
|
||||||
systemd-boot.enable = true;
|
# systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
# efi.canTouchEfiVariables = true;
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
mirroredBoots = [
|
||||||
|
{
|
||||||
|
path = "/boot0";
|
||||||
|
devices = ["nodev"];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
path = "/boot1";
|
||||||
|
devices = ["nodev"];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
disko.devices.disk = lib.genAttrs ["0" "1"] (name: {
|
disko.devices.disk = lib.genAttrs ["0" "1"] (name: {
|
||||||
|
@ -22,11 +38,13 @@
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
ESP = {
|
ESP = {
|
||||||
size = "500M";
|
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
|
size = "500M";
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "filesystem";
|
||||||
name = "boot";
|
format = "vfat";
|
||||||
|
mountpoint = "/boot${name}";
|
||||||
|
mountOptions = ["umask=0077"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mdadm = {
|
mdadm = {
|
||||||
|
@ -41,16 +59,16 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
disko.devices.mdadm = {
|
disko.devices.mdadm = {
|
||||||
boot = {
|
# boot = {
|
||||||
type = "mdadm";
|
# type = "mdadm";
|
||||||
level = 0;
|
# level = 1;
|
||||||
# metadata = "1.0";
|
# metadata = "1.0";
|
||||||
content = {
|
# content = {
|
||||||
type = "filesystem";
|
# type = "filesystem";
|
||||||
format = "vfat";
|
# format = "vfat";
|
||||||
mountpoint = "/boot";
|
# mountpoint = "/boot";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
raid0 = {
|
raid0 = {
|
||||||
type = "mdadm";
|
type = "mdadm";
|
||||||
level = 0;
|
level = 0;
|
||||||
|
|
Loading…
Reference in a new issue