Skip to content

Commit

Permalink
feat: migrate to new sshackd server instance.
Browse files Browse the repository at this point in the history
Also add shell.nix + direnv support
  • Loading branch information
asimpson committed Mar 28, 2022
1 parent c5e1485 commit 48863d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eval "$(lorri direnv)"
use nix
2 changes: 1 addition & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func getCert(url string) (cert Cert, error error) {

func init() {
rootCmd.AddCommand(sshCmd)
sshCmd.Flags().StringP("url", "u", "https://sshackd.herokuapp.com", "Set an alternate API URL")
sshCmd.Flags().StringP("url", "u", "https://sshackd.sparkbox.com", "Set an alternate API URL")
sshCmd.Flags().BoolP("print", "p", false, "Print cert and private key instead of adding to ssh-agent")
sshCmd.Flags().BoolP("write", "w", false, "Write cert (key-cert.pub) and key (key) to files instead of adding them to ssh-agent")
}
4 changes: 4 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = [ pkgs.buildPackages.go pkgs.buildPackages.gopls ];
}

0 comments on commit 48863d7

Please sign in to comment.