Nixos-shell: Difference between revisions
imported>Onny Add example with mounting directories |
imported>Onny mNo edit summary |
||
| Line 11: | Line 11: | ||
== Usage == | == Usage == | ||
== Simple port forward == | === Simple port forward === | ||
Create a single example file containing the system configuration for the virtual machine | Create a single example file containing the system configuration for the virtual machine | ||
| Line 32: | Line 32: | ||
After the VM is successfully booted, DokuWiki will be available on http://localhost:8080 | After the VM is successfully booted, DokuWiki will be available on http://localhost:8080 | ||
== Mounting host directories == | === Mounting host directories === | ||
This snippet mounts the directory <code>calendar</code> which resides in the working directory where you run nixos-shell on the host. It gets mounted to <code>/var/lib/nextcloud/store-apps/calendar</code> on the guest. The target directory must exist before mounting gets executed. | This snippet mounts the directory <code>calendar</code> which resides in the working directory where you run nixos-shell on the host. It gets mounted to <code>/var/lib/nextcloud/store-apps/calendar</code> on the guest. The target directory must exist before mounting gets executed. | ||