tests: align darwin getconf placeholder for ssh/proton agents
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
11c89ba2e5
commit
57134be3b8
10 changed files with 10 additions and 10 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<array>
|
||||
<string>/bin/sh</string>
|
||||
<string>-c</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket'</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket'</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<array>
|
||||
<string>/bin/sh</string>
|
||||
<string>-c</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@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'</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@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'</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
|
|
|||
|
|
@ -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"'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<array>
|
||||
<string>/bin/sh</string>
|
||||
<string>-c</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@openssh@/bin/ssh-agent -D -a "$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent"'</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@openssh@/bin/ssh-agent -D -a "$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent"'</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
|
|
|||
|
|
@ -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"'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<array>
|
||||
<string>/bin/sh</string>
|
||||
<string>-c</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@openssh@/bin/ssh-agent -D -a "$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent" -P '\''/usr/lib/libpkcs11.so,/usr/lib/other.so'\'''</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@openssh@/bin/ssh-agent -D -a "$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent" -P '\''/usr/lib/libpkcs11.so,/usr/lib/other.so'\'''</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<array>
|
||||
<string>/bin/sh</string>
|
||||
<string>-c</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@openssh@/bin/ssh-agent -D -a "$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent" -t 1337'</string>
|
||||
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@openssh@/bin/ssh-agent -D -a "$(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent" -t 1337'</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue