Disko is a tool for declarative disk partitioning and formatting using Nix.
The tool solves the problem of managing disk layouts in a reproducible, version-controlled way. Rather than running imperative commands to partition and format disks, Disko lets you describe your desired disk configuration in Nix and apply it consistently across machines. It integrates with NixOS installation workflows, allowing disk setup to be part of your infrastructure-as-code approach alongside system configuration.
Disko suits teams and individuals already invested in Nix and NixOS who want their entire system definition—from disk layout through software packages—in a single declarative format. It is particularly valuable for automated provisioning, reproducible machine setups, and environments where you need to apply identical disk configurations across multiple systems. The tool works as part of the broader NixOS ecosystem and assumes familiarity with Nix syntax and concepts.
The project shows consistent maintenance with regular engagement on issues and pull requests. Development activity includes ongoing refinement of disk configuration schemas and compatibility with evolving NixOS tooling. The maintainers actively respond to user reports and incorporate improvements to the declarative interface.