1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-19 00:39:37 +01:00
nix/tests/functional/socket-only-daemon-binary-cache.sh
Robert Hensing 6a017a2a87 Enable socket-only daemon operations without filesystem access
Allows the Nix daemon to serve store paths purely over Unix domain
sockets without requiring the client to have filesystem access to
the store directory. This can be useful for VM setups where the host
serves paths to the guest via socket.

Tests verify socket-only operations work for copying, substitution,
and remote building (tested on Linux), with both local and binary cache stores.
2025-11-05 15:43:41 +01:00

11 lines
425 B
Bash
Executable file

#!/usr/bin/env bash
# Run the socket-only-daemon test with a binary cache backend
# This tests that
# - The daemon can serve a binary cache store; not just a local store
# - Client's store operations do not reach into the file system secretly,
# because the files don't exist in the places where a local store would
# put them. (We have NARs instead)
daemon_backing_store_is_binary_cache=1
source socket-only-daemon.sh