feat: 1password ssh agent
This commit is contained in:
parent
e985ff9850
commit
5f6c142e3c
3 changed files with 25 additions and 1 deletions
20
home/modules/console/utility/ssh/default.nix
Normal file
20
home/modules/console/utility/ssh/default.nix
Normal 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"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue