ssh options

This commit is contained in:
John Lancaster
2026-03-29 17:38:45 -05:00
parent e0abbd6b90
commit 04bbf00c3d
5 changed files with 54 additions and 50 deletions
+2 -8
View File
@@ -1,16 +1,10 @@
{ self, inputs, ... }: {
flake.modules.homeManager.onepassword = { config, pkgs, lib, ... }: {
flake.modules.homeManager.onepassword = { config, ... }: {
home.file.".config/1Password/ssh/agent.toml".text = ''
# https://developer.1password.com/docs/ssh/agent/config
[[ssh-keys]]
vault = "Private"
'';
programs.ssh = {
enable = true;
extraConfig = ''
Host *
IdentityAgent ${config.home.homeDirectory}/.1password/agent.sock
'';
};
programs.ssh.matchBlocks."*".identityAgent = "${config.home.homeDirectory}/.1password/agent.sock";
};
}