fix ssh, gpg agent
This commit is contained in:
parent
8131a1aca2
commit
5d58b2fc54
@ -8,9 +8,8 @@
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
pinentryFlavor = "gnome3";
|
||||
pinentryFlavor = "gtk2";
|
||||
sshKeys = [
|
||||
# "E6A6377C3D0827C36428A290199FDB3B91414AFE"
|
||||
"7A7130ABF128CC2C32B3D6AD27515056B0193CE1"
|
||||
];
|
||||
};
|
||||
|
@ -1,19 +1,22 @@
|
||||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
forwardX11 = true;
|
||||
extraConfig = "StreamLocalBindUnlink yes";
|
||||
ports = [ 22 ];
|
||||
};
|
||||
|
||||
home-manager.users.alukard = {
|
||||
# programs.ssh = {
|
||||
# enable = true;
|
||||
# forwardAgent = true;
|
||||
# extraOptions = {
|
||||
# # Host = "localhost";
|
||||
# AddKeysToAgent = "ask";
|
||||
# }
|
||||
# };
|
||||
home.file.".ssh/config".text = ''
|
||||
Host localhost
|
||||
ForwardAgent yes
|
||||
AddKeysToAgent ask
|
||||
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
|
||||
'';
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
compression = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user