mirror of
https://github.com/nix-community/disko
synced 2024-11-15 00:27:07 +00:00
da8f49246c
The alternative would be to do this automatically if format=="vfat" and mountpoint=="/boot", but it's better to be upfront about this. Fixes #527
33 lines
743 B
Nix
33 lines
743 B
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
device = "/dev/disk/by-id/some-disk-id";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
type = "EF00";
|
|
size = "500M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|