2024-03-31 23:23:56 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 22:18:13 +02:00
|
|
|
options.user.ssh-agent.enable = lib.mkEnableOption "enable ssh-agent";
|
|
|
|
config = lib.mkIf config.user.ssh-agent.enable {
|
|
|
|
services.ssh-agent.enable = true;
|
|
|
|
programs.nushell.extraEnv = ''
|
|
|
|
$env.SSH_AUTH_SOCK = $"($env.XDG_RUNTIME_DIR)/ssh-agent"
|
|
|
|
'';
|
|
|
|
};
|
2024-03-31 23:23:56 +02:00
|
|
|
}
|