re enabled ssh agent IdentityFile
This commit is contained in:
parent
2e41153c43
commit
5e0bf9f068
1 changed files with 8 additions and 8 deletions
|
@ -41,14 +41,14 @@
|
|||
(
|
||||
lib.mkIf ((builtins.length config.programs.openssh.hostKeys) != 0) {
|
||||
services.ssh-agent.enable = true;
|
||||
# programs.ssh = {
|
||||
# enable = true;
|
||||
# compression = true;
|
||||
# addKeysToAgent = "confirm";
|
||||
# extraConfig = lib.strings.concatLines (
|
||||
# builtins.map (hostKey: "IdentityFile ~/.ssh/${hostKey.path}") config.programs.openssh.hostKeys
|
||||
# );
|
||||
# };
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
compression = true;
|
||||
addKeysToAgent = "confirm";
|
||||
extraConfig = lib.strings.concatLines (
|
||||
builtins.map (hostKey: "IdentityFile ~/.ssh/${hostKey.path}") config.programs.openssh.hostKeys
|
||||
);
|
||||
};
|
||||
|
||||
systemd.user.services = builtins.listToAttrs (
|
||||
builtins.map (hostKey:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue