{ disk ? "/dev/sda", ... }: { boot.loader.efi.canTouchEfiVariables = true; boot.loader.systemd-boot.enable = true; disko.devices = { disk = { disk1 = { device = disk; type = "disk"; content = { type = "table"; format = "gpt"; partitions = [ { name = "ESP"; start = "1MiB"; end = "500MiB"; bootable = true; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; } { name = "root"; start = "500MiB"; end = "100%"; part-type = "primary"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; } ]; }; }; }; }; }