Enable hybrid boot for disko module
This commit is contained in:
parent
c4ec22b380
commit
a8f632ed50
2 changed files with 7 additions and 9 deletions
|
@ -17,13 +17,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
|
||||||
loader.grub = {
|
|
||||||
enable = true;
|
|
||||||
device = "/dev/sda";
|
|
||||||
};
|
|
||||||
tmp.useTmpfs = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "srv01-hf"; # Define your hostname.
|
networking.hostName = "srv01-hf"; # Define your hostname.
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,21 @@
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
MBR = {
|
||||||
|
type = "EF02"; # for grub MBR
|
||||||
|
size = "1M";
|
||||||
|
priority = 1; # Needs to be first partition
|
||||||
|
};
|
||||||
ESP = {
|
ESP = {
|
||||||
priority = 1;
|
priority = 1;
|
||||||
name = "ESP";
|
name = "ESP";
|
||||||
start = "1M";
|
size = "500M";
|
||||||
end = "128M";
|
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
root = {
|
root = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue