# disk-config.nix
# Example to create a msdos partition
{ lib, ... }:
{
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/sda";
# type = "disk";
content = {
type = "table";
format = "msdos";
partitions = [
{
part-type = "primary";
fs-type = "btrfs";
name = "root";
bootable = true;
content = {
type = "filesystem";
format = "btrfs";
extraArgs = [ "-f" "-O block-group-tree" ];
mountpoint = "/";
mountOptions = [ "compress=zstd" ];
};
}
];
};
};
};
}
|