{ config, lib, ... }: { options.monorepo.vars.disk = lib.mkOption { type = lib.types.str; default = "/dev/sda"; example = "/dev/nvme0n1"; description = "Disk to install NixOS to"; }; config.disko.devices = { disk = { my-disk = { device = config.monorepo.vars.disk; type = "disk"; content = { type = "gpt"; partitions = { ESP = { type = "EF00"; size = "500M"; priority = 1; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; priority = 2; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; }; }; }; }; }; }