{ ... }: # Declarative OS-disk layout (disko), same as terra: GPT, ESP + btrfs root, # whole internal NVMe, NixOS only. See hosts/terra/disk-config.nix for why # each partition wipes its old signature first. # # ⚠️ This disk is WIPED on install. `device` is a deliberate non-path until # the real id is filled in from the laptop (`ls -l /dev/disk/by-id/`), so # an install fails before touching anything rather than guessing a disk. { disko.devices.disk.os = { type = "disk"; device = "/dev/disk/by-id/FILL-ME-IN-titan-nvme"; content = { type = "gpt"; partitions = { ESP = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; preCreateHook = ''wipefs --all --force "$device"''; }; }; root = { size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; mountpoint = "/"; preCreateHook = ''wipefs --all --force "$device"''; }; }; }; }; }; }