Vagrant: Difference between revisions

imported>Samueldr
m Adds link to the nixos box page for the vagrant-nixos-plugin
imported>Samueldr
m Adds a (slightly wrong) documentation to make use of NFS mounts and vagrant.
Line 2: Line 2:


{{note|This page is about vagrant, see [[Vagrant Box]] for the NixOS vagrant boxes.}}
{{note|This page is about vagrant, see [[Vagrant Box]] for the NixOS vagrant boxes.}}
== NixOS as Host ==
=== Using NFS mounts ===
Add to your <tt>configuration.nix</tt>:
<syntaxhighlight lang="nix">
{
  # Minimal configuration for NFS support with Vagrant.
  services.nfs.server.enable = true;
  # !!! This is "unsafe", ports needed should be found and fixed here.
  networking.firewall.enable = false;
}
</syntaxhighlight>
This will make NFS mounts work.
{{note|Do note that vagrant will, by default, want to use <code>sudo</code> and modify <tt>/etc/exports</tt>. As long as you are not defining exports with <tt>configuration.nix</tt>, vagrant should be able to work.}}


== Plugins ==
== Plugins ==