Skip to content

nixos-generate-config --show-hardware-config fails after disko-install #1113

@font44

Description

@font44

Hi,

I followed https://github.com/nix-community/disko/blob/master/docs/disko-install.md#fresh-installation to setup a fresh system and it went through successfully.

My hardware-configuration.nix though doesn't contain any fileSystems or LUKS encryption configuration. See: https://github.com/font44/nixos-config/blob/main/hardware-configuration.nix

Moreover, I see the following failure while trying to regenerate that file:

user@nixos:/tmp/ > nixos-generate-config --show-hardware-config
Failed to retrieve subvolume info for /

Is this expected? Is there any workaround by which I can add fileSystems and boot.initrd.luks.devices entries to my hardware-configuration.nix or make the nixos-generate-config command succeed?

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