nix-cage.json

{
    "mounts": {
        "rw": [".", "~/.emacs.d"],
        "ro": ["~/.gitconfig"],
        "tmpfs": ["~"]
    }
}