ssh-agent + port fix
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
host = name;
|
host = name;
|
||||||
hostname = "ssh.${hyper.domain}";
|
hostname = "ssh.${hyper.domain}";
|
||||||
user = hyper.user;
|
user = hyper.user;
|
||||||
port = secrets.ssh.port;
|
port = 50022;
|
||||||
identityFile = "${hyper.home}/vault/ssh/nxace-nx2-${hyper.host}";
|
identityFile = "${hyper.home}/vault/ssh/nxace-nx2-${hyper.host}";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
@@ -23,24 +23,31 @@
|
|||||||
};
|
};
|
||||||
home.packages = with pkgs; [ sshfs ];
|
home.packages = with pkgs; [ sshfs ];
|
||||||
|
|
||||||
services.gpg-agent = let
|
services = {
|
||||||
min2sec = min: (min * 60);
|
ssh-agent = {
|
||||||
in {
|
enable = true;
|
||||||
enable = false;
|
# socket = "ssh-agent"; # suffix to $XDG_RUNTIME_DIR
|
||||||
verbose = true;
|
# package = pkgs.openssh;
|
||||||
sshKeys = [
|
};
|
||||||
"97081264F7FD72D890D496E839AA9A4C7892A7D8" # Keygrip (not Fingerprint!) of [A] Subkey
|
gpg-agent = let
|
||||||
];
|
min2sec = min: (min * 60);
|
||||||
enableSshSupport = true;
|
in {
|
||||||
enableFishIntegration = true;
|
enable = false;
|
||||||
defaultCacheTtlSsh = min2sec 60;
|
verbose = true;
|
||||||
defaultCacheTtl = min2sec 30;
|
sshKeys = [
|
||||||
pinentry = {
|
"97081264F7FD72D890D496E839AA9A4C7892A7D8" # Keygrip (not Fingerprint!) of [A] Subkey
|
||||||
package = pkgs.pinentry;
|
];
|
||||||
program = "pinentry";
|
enableSshSupport = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
defaultCacheTtlSsh = min2sec 60;
|
||||||
|
defaultCacheTtl = min2sec 30;
|
||||||
|
pinentry = {
|
||||||
|
package = pkgs.pinentry;
|
||||||
|
program = "pinentry";
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
allow-loopback-pinentry
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
|
||||||
allow-loopback-pinentry
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user