on master help sign in
Remove ~/.config mount; only mount /workspace
commitdd7925abd7cd21d36cb09499a834add0ecfcbb50 authoriko <mail@iko.soy> dateSun 28 Jun 2026, 05:22 (3 months ago) parent721fa1d
2 files changed+2−6
README.md+1−3 c+1−3
README.md+1−3
@@ -65,9 +65,7 @@ nix run github:ilyakooo0/nix-container -- start
6565
6666- `init` builds the OCI archive in a temp dir, loads it into `container`,
6767 deletes the temp file, then (re)creates the container. It mounts the current
68− directory at `/workspace` (the container's working directory) and your
69− `~/.config` at `/root/.config` (fish runs with `--no-config`, so this won't
70− override its bundled prompt; other tools still read it).
68+ directory at `/workspace` (the container's working directory).
7169- `--ssh` forwards your host SSH agent socket into the container (so `git` over
7270 SSH works with your keys).
7371- Add more mounts by passing them through (mounts can only be set at creation):
c+1−3
@@ -53,10 +53,8 @@ switch $argv[1]
5353 rm -rf $tmp
5454 test $rc -eq 0; or exit $rc
5555
56− # Mount the project at /workspace (the default cwd) and host ~/.config.
57− # (fish runs with --no-config, so the mount can't shadow the prompt.)
56+ # Mount the project at /workspace (the default cwd).
5857 set -l mounts -v "$PWD:/workspace"
59− test -d $HOME/.config; and set -a mounts -v "$HOME/.config:/root/.config"
6058
6159 # Replace any existing container of the same name. The image's cmd is
6260 # /bin/fish, so no command is passed.