mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-28 00:05:00 +08:00
39 lines
941 B
Nix
39 lines
941 B
Nix
# A trivial disk configuration with single root partition taking whole disk
|
|
# space.
|
|
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
# TODO: Don't hardcode (this file is used by multiple systems)
|
|
device = "/dev/nvme0n1";
|
|
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 = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|