feat: 1password ssh agent

This commit is contained in:
ooks-io 2024-02-19 23:09:59 +13:00
parent e985ff9850
commit 5f6c142e3c
3 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,20 @@
{ lib, config, ... }:
let
cfg = config.homeModules.console.utility.ssh;
in
{
config = lib.mkIf cfg.enable {
programs.ssh = {
enable = true;
extraConfig = /* config */''
Host *
IdentitiesOnly=yes
IdentityAgent "~/.1password/agent.sock"
'';
};
};
}