1
0
Fork 0

Use 1PW as the SSH agent

This commit is contained in:
Daniel Kempkens 2022-03-17 10:33:21 +01:00
parent b77104c03d
commit ef64652150
2 changed files with 5 additions and 17 deletions

View file

@ -12,9 +12,7 @@ in
hashKnownHosts = true;
serverAliveInterval = 60;
extraConfig = ''
IgnoreUnknown UseKeychain,AddKeysToAgent
UseKeychain yes
AddKeysToAgent yes
IdentityAgent ~/.ssh/1password.sock
UpdateHostKeys ask
VerifyHostKeyDNS yes
'';
@ -25,8 +23,8 @@ in
"git.app.nedeco.de" = {
port = 22;
user = "git";
identityFile = "~/.ssh/nedeco_gitlab.pub";
identitiesOnly = true;
identityFile = "~/.ssh/nedeco_gitlab";
compression = true;
};
@ -34,8 +32,8 @@ in
host = "10.0.90.*";
port = 22;
user = "root";
identityFile = "~/.ssh/nedeco.pub";
identitiesOnly = true;
identityFile = "~/.ssh/nedeco";
};
# Private
@ -43,8 +41,8 @@ in
"github.com" = {
port = 22;
user = "git";
identityFile = "~/.ssh/GitHub.pub";
identitiesOnly = true;
identityFile = "~/.ssh/GitHub";
compression = true;
};
@ -66,8 +64,8 @@ in
hostname = "10.0.0.100";
port = 22;
user = "daniel";
identityFile = "~/.ssh/NAS.pub";
identitiesOnly = true;
identityFile = "~/.ssh/freenas";
compression = true;
};
};

View file

@ -25,16 +25,6 @@
};
}
{
name = "ssh-agent-macos";
src = pkgs.fetchFromGitHub {
owner = "nifoc";
repo = "ssh-agent-macos.fish";
rev = "a9dde730a462b3b327cabf1a56a643a12b0aea3d";
sha256 = "e0YrQzcgkHvFiYuXluS+TZ/hjDneK33xcWbo7sjXWNA=";
};
}
{
name = "done-fish";
src = pkgs.fetchFromGitHub {