#!/bin/sh # this needs elevated permissions, as long as docker mounts a volume and not a hostpath the contents get kept without # needing an overlay mount # mount -t overlay overlay -o \ # lowerdir=/nix/store,upperdir=/mnt/nix/store/upper,workdir=/mnt/nix/store/workdir \ # /nix/store nix-daemon