# nix-community/disko

Declarative disk partitioning and formatting using nix [maintainers=@Lassulus @Enzime @iFreilicht @Mic92 @phaer]

Repository: https://github.com/nix-community/disko
Canonical: https://ross.abutalabs.com/products/disko
Language: Nix
License: MIT
License Family: permissive
Topics: build-with-buildbot, flakes, nix
Last push: 2026-08-24T01:40:48+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 54, longevity 100
- inputs: {"age_days": 2769, "days_push": 10, "days_rel": 225, "gap_med": 32, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3284, forks 326 (observed 2026-08-28T04:07:53.612121+00:00)

## What it is
disko is a declarative disk partitioning and formatting tool for NixOS that lets you define disks, partitions, filesystems, and mount points as Nix configuration. It automates installation-time disk setup, supports disk image creation, and integrates with nixos-anywhere and disko-install.

## Use cases
- declaratively partition and format disks during NixOS installation
- set up unattended or automated NixOS installations
- rebuild identical disk layouts across multiple servers
- recover and re-provision disks after a system crash
- create bootable NixOS disk images from configuration
- remotely install NixOS with nixos-anywhere and disko
- configure LUKS encryption, LVM, ZFS, or btrfs layouts as code

## When to choose
- you use NixOS and want disk setup described in code alongside the rest of your configuration
- you need reproducible, unattended installations or identical server provisioning
- you want to generate disk images declaratively

## When to avoid
- you are not using NixOS or the Nix ecosystem
- you need a general-purpose interactive partitioning tool like fdisk or GParted
- you only need a one-off manual disk format

## Facets
- artifact type: cli-tool
- maturity: active
- function: infrastructure-as-code, cli, configuration-management, deployment
- domain: infrastructure-as-code, operating-systems, self-hosted
- platform: cli
- tags: nixos, disk-partitioning, declarative, filesystems, luks, zfs, btrfs, disk-images, unattended-installation, devops, automation, linux, nix

## Member repositories
- nix-community/disko (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.612121+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:43:13.924039+00:00, confidence not recorded.
  - readme: https://github.com/nix-community/disko (fetched 2026-08-28T04:07:53.612121+00:00, sha f06e1eb37877)
- Data as of 2026-08-30T08:39:29.467469+00:00.
