Skip to content

find and document automation to dump/load hosts /nix/store db #196

@thkoch2001

Description

@thkoch2001

The hosts /nix/store is mounted inside the microvm. However nix inside the VM does not use objects from /nix/store. It does not know these objects since they are not in the Nix database (/nix/var/nix/db).

Probably the best solution is currently worked on as [RFC 0152] local-overlay store.

A workaround is to use nix-store --dump-db on the host and nix-store --load-db in the guest VM.

Of course this is a hack. But for my use case of local project development VMs it should work fine.

I've not yet figured out a nice automation for this. Ideally, a db-dump would be made on microvm boot, copied in the VM and loaded inside the VM.

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