global/ssh: setup ssh-agent, remove keychain

This commit is contained in:
Infinidoge 2025-01-21 10:02:40 -05:00
parent e6e80da7e3
commit a87c2cacff
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 3 additions and 11 deletions

View file

@ -1,11 +0,0 @@
{ config, ... }:
{
services.ssh-agent.enable = true;
programs.keychain = {
enable = true;
inheritType = "any";
extraFlags = [ "--quiet" "--quick" "--systemd" "--dir ${config.xdg.configHome}/keychain" "--agents \"\"" ];
keys = [ "id_ed25519" ];
};
}

View file

@ -2,6 +2,7 @@
{
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
controlMaster = "auto";
controlPersist = "1m";
matchBlocks = {
@ -10,4 +11,6 @@
};
};
};
services.ssh-agent.enable = true;
}