Skip to content

Commit

Permalink
nix copy only support ssh_config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Albin Vass committed Apr 20, 2024
1 parent 4d82380 commit 3eb4047
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
targetHost = "${name}-ssh.albinvass.se";
targetUser = "avass";
buildOnTarget = true;
sshOptions = ["-o ProxyCommand=cloudflared access ssh --hostname %h"];
tags = [
"enabled"
"pulumi:state:enabled:false"
Expand Down
3 changes: 3 additions & 0 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ let
set -euo pipefail
GIT_ROOT="$(git rev-parse --show-toplevel)"
SSH_CONFIG_FILE="$GIT_ROOT/ssh/config"
export SSH_CONFIG_FILE
set -o allexport
eval "$(sops --output-type dotenv --extract '["env"]' -d "$GIT_ROOT/secrets.yaml")"
set +o allexport
Expand Down
4 changes: 4 additions & 0 deletions ssh/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# vim: set ft=ssh_config:

Host nixpi-ssh.albinvass.se
ProxyCommand=cloudflared access ssh --hostname %h

0 comments on commit 3eb4047

Please sign in to comment.