Skip to content

Conversation

@dermetfan
Copy link
Contributor

I need the ability to mount a given directory anywhere inside the VM. This PR adds a --mount host-dir guest-dir switch.

Note: This introduces a minor behavior change. Previously, all arguments after vm.nix were passed to nix-build. Now -- is required to stop argument parsing, so

nixos-shell vm.nix --arg …

becomes

nixos-shell vm.nix -- --arg …

@Mic92
Copy link
Owner

Mic92 commented Jan 16, 2019

Thanks! Works perfectly.

@Mic92 Mic92 merged commit 7678921 into Mic92:master Jan 16, 2019
@dermetfan dermetfan deleted the feature/mounts branch January 16, 2019 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants