NFS: Difference between revisions
imported>Samueldr m Removes \n as mediawiki is \n sensitive |
imported>Samueldr m h1 → h2... h1 are forbidden (by mediawiki styleguide) even though they're possible |
||
| Line 76: | Line 76: | ||
That way, the NFS mount action won't actually be performed until the first time the mountpoint is accessed. | That way, the NFS mount action won't actually be performed until the first time the mountpoint is accessed. | ||
= Nix store on NFS = | == Nix store on NFS == | ||
In a single-user setup ('''not on Nixos''') the nix store can be also exported over NFS (common in HPC clusters) to share package over the networks. The only requirement is to also pass <code>local_lock=flock</code> or <code>local_lock=all</code> as mount option to allow the nix packages to take locks on modifications. Example entry in <code>fstab</code>: | In a single-user setup ('''not on Nixos''') the nix store can be also exported over NFS (common in HPC clusters) to share package over the networks. The only requirement is to also pass <code>local_lock=flock</code> or <code>local_lock=all</code> as mount option to allow the nix packages to take locks on modifications. Example entry in <code>fstab</code>: | ||
<syntaxhighlight lang="console"><host_or_ip>/nix /nix nfs nofail,x-systemd.device-timeout=4,local_lock=all 0 0</syntaxhighlight> | <syntaxhighlight lang="console"><host_or_ip>/nix /nix nfs nofail,x-systemd.device-timeout=4,local_lock=all 0 0</syntaxhighlight> | ||