mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-03 19:48:24 +08:00
39 lines
972 B
Nix
39 lines
972 B
Nix
# A trivial disk configuration with single root partition taking whole disk
|
|
# space.
|
|
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
# When using disko-install, we will overwrite this value from the commandline
|
|
device = "/dev/disk/by-id/some-disk-id";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
boot = {
|
|
size = "1M";
|
|
type = "EF02"; # for grub MBR
|
|
};
|
|
ESP = {
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|