Home Explore Blog Models CI



nix

1st chunk of `src/libstore/mounted-ssh-store.md`
39d102f97ed07abb6c1248705a8542f9e1b32b1a89df39e8000000010000035f
R"(

**Store URL format**: `mounted-ssh-ng://[username@]hostname`

Experimental store type that allows full access to a Nix store on a remote machine,
and additionally requires that store be mounted in the local file system.

The mounting of that store is not managed by Nix, and must by managed manually.
It could be accomplished with SSHFS or NFS, for example.

The local file system is used to optimize certain operations.
For example, rather than serializing Nix archives and sending over the Nix channel,
we can directly access the file system data via the mount-point.

The local file system is also used to make certain operations possible that wouldn't otherwise be.
For example, persistent GC roots can be created if they reside on the same file system as the remote store:
the remote side will create the symlinks necessary to avoid race conditions.
)"

Title: Mounted SSH-NG Nix Store Type
Summary
The `mounted-ssh-ng://[username@]hostname` is an experimental Nix store type that provides full access to a remote Nix store, requiring it to be manually mounted on the local file system (e.g., via SSHFS or NFS). This local mounting optimizes operations like accessing file system data directly, avoiding serialization over the Nix channel, and enables functionalities such as creating persistent GC roots on the same file system as the remote store.