Libvirt: Difference between revisions

imported>Onny
Add mounting example
imported>Onny
Update davfs mount example
Line 141: Line 141:
Mount an example share called <code>myshare</code> to the mountpoint <code>myshare</code>
Mount an example share called <code>myshare</code> to the mountpoint <code>myshare</code>


<syntaxhighlight lang="bash">
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
mkdir myshare
services.davfs2 = {
mount -t davfs http://localhost:9843/myshare myshare
  enable = true;
</syntaxhighlight>
  extraConfig = ''
    ask_auth 0
  '';
};
 
fileSystems = {
  "/root/myshare" = {
    device = "http://localhost:9843/myshare";
    fsType = "davfs";
    options = [ "ask_auth=0" ];
  };
};
</nowiki>}}


== Clients ==
== Clients ==