{ config, lib, pkgs, ... }: # USAGE in your configuration.nix. # Update devices to match your hardware. # { # imports = [ ./disko-config.nix ]; # disko.devices.disk.main.device = "/dev/sda"; # } { disko.devices = { disk = { device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0"; main = { type = "disk"; content = { type = "gpt"; partitions = { boot = { size = "1M"; type = "EF02"; # for grub MBR }; ESP = { size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; }; }; }; }; }; }