Skip to content

disko-install build the whole system before format the hard drive #942

@cmerbach

Description

@cmerbach

When i am running disko-install like:

sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake <flake-url>#<flake-attr> --disk <disk-name> <disk-device>

as described in the documentation, what is the reason for, the entire system being built before the hard drive or device is formatted? The issue arises when I use a USB stick or an installer to install NixOS without using nixos-everywhere. This causes an "out of space" error because disko-install tries to build everything configured in my flakes, including all packages, and then writes them to the specified disk.

What is the logic behind this approach? My understanding would be that the target drive should first be formatted, and then NixOS should be installed directly onto it.
Or do i misunderstood the using7usecase of nixos-install?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions