dotfiles/disks/root.nix

43 lines
960 B
Nix
Raw Permalink Normal View History

2023-02-27 01:03:39 +00:00
{ disk, ... }: {
2023-02-26 15:55:36 +00:00
disk = {
boot = {
type = "disk";
2023-02-27 01:03:39 +00:00
device = disk;
2023-02-26 15:55:36 +00:00
content = {
type = "table";
format = "gpt";
partitions = [
# Boot partition
{
name = "ESP";
start = "0";
end = "512MiB";
fs-type = "fat32";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
extraArgs = [ "-n boot" ];
};
}
# Root partition ext4
{
name = "root";
start = "512MiB";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
extraArgs = [ "-L nixos" ];
};
}
];
};
};
};
}