Use a per-directory image tag: nix-container-<dir>
commit240cbd3715cd51df779babf149c0ff7337b2e01b
authoriko <mail@iko.soy>
dateSat 27 Jun 2026, 21:26 (3 months ago)
parentdfc2fe1
c+2−2
@@ -7,8 +7,8 @@
77set -l name (path basename $PWD)
88# The flake lives next to this script (resolve symlinks so it works from $PATH too).
99set -l flake (path dirname (path resolve (status filename)))
10−# Image ref this script loads and runs (the archive tag + `create` reference).
11−set -l image nix-container:latest
10+# Per-directory image ref this script loads and runs (archive tag + `create`).
11+set -l image "nix-container-$name:latest"
1212
1313switch $argv[1]
1414 case init