Skip to content

Commit c532c93

Browse files
bors[bot]Melkor333
andauthored
Merge #129
129: Create ~/.ssh folder and add .direnv to gitignore r=Mic92 a=Melkor333 Co-authored-by: Samuel Hierholzer (Adfinis AG) <[email protected]>
2 parents c047dea + a102f30 commit c532c93

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
result
2+
/.direnv

src/nixos-anywhere.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ fi
179179
ssh_key_dir=$(mktemp -d)
180180
trap 'rm -rf "$ssh_key_dir"' EXIT
181181
mkdir -p "$ssh_key_dir"
182+
# ssh-copy-id requires this directory
183+
mkdir -p "$HOME/.ssh/"
182184
ssh-keygen -t ed25519 -f "$ssh_key_dir"/nixos-anywhere -P "" -C "nixos-anywhere" >/dev/null
183185

184186
# parse flake nixos-install style syntax, get the system attr

0 commit comments

Comments
 (0)