2024-02-07 01:40:31 +00:00
|
|
|
{
|
|
|
|
nixosConfig,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
_1passwordAgent = {
|
|
|
|
enable = nixosConfig != {} && nixosConfig.programs._1password-gui.enable && nixosConfig.programs._1password-gui.sshAgent;
|
|
|
|
path = "${config.home.homeDirectory}/.1password/agent.sock";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
forwardAgent = _1passwordAgent.enable;
|
2024-02-18 01:09:22 +00:00
|
|
|
extraConfig = ''
|
|
|
|
Host *
|
|
|
|
IdentityAgent ~/.1password/agent.sock
|
|
|
|
'';
|
2024-02-07 01:40:31 +00:00
|
|
|
};
|
2024-02-18 01:09:22 +00:00
|
|
|
}
|
|
|
|
|