mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
fix: new disko format of disks wouldn't boot
This commit is contained in:
parent
d636de890c
commit
4bfd65acb3
@ -7,24 +7,28 @@
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
# Boot partition
|
||||
ESP = {
|
||||
ESP = rec {
|
||||
size = "512MiB";
|
||||
type = "EF00";
|
||||
label = "boot";
|
||||
device = "/dev/disk/by-label/${label}";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
extraArgs = [ "-n boot" ];
|
||||
extraArgs = [ "-n ${label}" ];
|
||||
};
|
||||
};
|
||||
# Root partition ext4
|
||||
root = {
|
||||
root = rec {
|
||||
size = "100%";
|
||||
label = "nixos";
|
||||
device = "/dev/disk/by-label/${label}";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
extraArgs = [ "-L nixos" ];
|
||||
extraArgs = [ "-L ${label}" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user