{ repoFlake, nodeFlake, lib, ... }: { imports = [ nodeFlake.inputs.disko.nixosModules.disko ]; disko.devices.disk.sda = { device = "/dev/sda"; type = "disk"; content = { type = "table"; format = "gpt"; partitions = [ { name = "boot"; start = "0"; end = "1M"; part-type = "primary"; flags = ["bios_grub"]; } { name = "root"; start = "1M"; end = "100%"; part-type = "primary"; bootable = true; content = { type = "btrfs"; extraArgs = ["-f"]; # Override existing partition subvolumes = { # Subvolume name is different from mountpoint "/rootfs" = { mountpoint = "/"; }; "/nix" = { mountOptions = ["noatime"]; }; }; }; } ]; }; }; }