tests: align darwin getconf placeholder for ssh/proton agents

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2026-03-03 14:10:18 -06:00
parent 11c89ba2e5
commit 57134be3b8
10 changed files with 10 additions and 10 deletions

View file

@ -15,7 +15,7 @@
assertFileContains $bash_profile \
'export SSH_AUTH_SOCK=${
if pkgs.stdenv.hostPlatform.isDarwin then
"$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)"
"$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)"
else
"$XDG_RUNTIME_DIR"
}/proton-pass-agent'

View file

@ -17,7 +17,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket&apos;</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket&apos;</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -15,7 +15,7 @@
assertFileContains $fish_config \
'set -x SSH_AUTH_SOCK ${
if pkgs.stdenv.hostPlatform.isDarwin then
"$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)"
"$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)"
else
"$XDG_RUNTIME_DIR"
}/proton-pass-agent'

View file

@ -17,7 +17,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket --share-id 123456789 --vault-name MySshKeyVault --refresh-interval 7200 --create-new-identities MySshKeyVault&apos;</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket --share-id 123456789 --vault-name MySshKeyVault --refresh-interval 7200 --create-new-identities MySshKeyVault&apos;</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -19,7 +19,7 @@
assertFileContains $nu_config \
'$env.SSH_AUTH_SOCK = $"${
if pkgs.stdenv.hostPlatform.isDarwin then
"(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)"
"(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)"
else
"($env.XDG_RUNTIME_DIR)"
}/proton-pass-agent"'

View file

@ -9,6 +9,6 @@
nmt.script = ''
assertFileContains \
home-files/.profile \
'export SSH_AUTH_SOCK=$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent'
'export SSH_AUTH_SOCK=$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent'
'';
}

View file

@ -17,7 +17,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@openssh@/bin/ssh-agent -D -a &quot;$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent&quot;&apos;</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@openssh@/bin/ssh-agent -D -a &quot;$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent&quot;&apos;</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -9,6 +9,6 @@
nmt.script = ''
assertFileContains \
home-files/.config/nushell/config.nu \
'$env.SSH_AUTH_SOCK = $"(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent"'
'$env.SSH_AUTH_SOCK = $"(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent"'
'';
}

View file

@ -17,7 +17,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@openssh@/bin/ssh-agent -D -a &quot;$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent&quot; -P &apos;\&apos;&apos;/usr/lib/libpkcs11.so,/usr/lib/other.so&apos;\&apos;&apos;&apos;</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@openssh@/bin/ssh-agent -D -a &quot;$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent&quot; -P &apos;\&apos;&apos;/usr/lib/libpkcs11.so,/usr/lib/other.so&apos;\&apos;&apos;&apos;</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -17,7 +17,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@openssh@/bin/ssh-agent -D -a &quot;$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent&quot; -t 1337&apos;</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec @bash-interactive@/bin/bash -c &apos;@openssh@/bin/ssh-agent -D -a &quot;$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent&quot; -t 1337&apos;</string>
</array>
<key>RunAtLoad</key>
<true/>