summaryrefslogtreecommitdiff
path: root/mut/bin/pnsh-nvim
diff options
context:
space:
mode:
authorroot <root@localhost>2025-01-21 08:43:49 +0000
committerMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-21 14:03:00 +0100
commitde6aa72099a2b8618562c2ab4230a2c2044655d2 (patch)
tree1c082d8f4ba84e3eed492315775a26ca2adf34df /mut/bin/pnsh-nvim
parent6777625ee34666986e2f38f5cf8198fdb360ea55 (diff)
do symlinks outside of nix
Diffstat (limited to 'mut/bin/pnsh-nvim')
-rwxr-xr-xmut/bin/pnsh-nvim13
1 files changed, 8 insertions, 5 deletions
diff --git a/mut/bin/pnsh-nvim b/mut/bin/pnsh-nvim
index 592cdee..07d09c0 100755
--- a/mut/bin/pnsh-nvim
+++ b/mut/bin/pnsh-nvim
@@ -7,8 +7,10 @@ if not ($desktop_open_pipe | path exists) {
let args = (
"--init" +
-" --env=TERM=xterm-ghostty" +
-$" --env=TERMINFO=($env.TERMINFO)" +
+" --entrypoint=/usr/bin/nu" +
+" --env=TERM=xterm" +
+$" --env=TERMINFO" +
+$" --volume=($env.TERMINFO):($env.TERMINFO)" +
" --env=_ZO_DATA_DIR=/hostfs/.local/share/zoxide" +
" --volume=/etc/profiles/per-user/ivi/etc/profile.d:/etc/profiles/per-user/ivi/etc/profile.d" +
" --env=SHELL=/usr/bin/nu" +
@@ -22,9 +24,9 @@ $" --hostname=(hostname)" +
" --env=HOME" +
$" --volume=($env.HOME):($env.HOME)" +
$" --workdir=($env | default $env.HOME PWD | get PWD)" +
-" --volume=/nix/store:/nix/store" +
-" --volume=/nix-config:/nix-config" +
-$" --volume=($env.HOME)/.ssh/config:/root/.ssh/config" +
+# " --volume=/nix/store:/nix/store" +
+$" --volume=/nix-config:/nix-config" +
+$" --volume=($env.HOME)/.ssh:/root/.ssh" +
$" --volume=($env | default "/var/run" XDG_RUNTIME_DIR | get XDG_RUNTIME_DIR)/docker.sock:/var/run/docker.sock"
)
@@ -32,6 +34,7 @@ $" --volume=($env | default "/var/run" XDG_RUNTIME_DIR | get XDG_RUNTIME_DIR)/do
^pnsh
--pnsh-host-bindfs-disabled
--pnsh-docker-extra-args=$"($args)"
+ --with-docker
--docker-image=pionativedev.azurecr.io/pionative/pnsh-nvim
--docker-tag=latest
)