This commit is contained in:
jacekpoz 2024-03-03 02:25:43 +01:00
parent 961deb964c
commit cd8f5e7778

View file

@ -76,7 +76,10 @@ in {
}; };
}) })
(mkIf cfg.agent.enable { (mkIf cfg.agent.enable {
programs.ssh.extraConfig = '' programs.ssh = {
enableAskPassword = true;
askPassword = "${pkgs.libsForQt5.ksshaskpass}/bin/ksshaskpass";
extraConfig = ''
AddKeysToAgent yes AddKeysToAgent yes
${concatStrings (mapAttrsToList (name: value: '' ${concatStrings (mapAttrsToList (name: value: ''
@ -88,6 +91,7 @@ in {
IdentitiesOnly ${if value.identitiesOnly then "yes" else "no"} IdentitiesOnly ${if value.identitiesOnly then "yes" else "no"}
'') cfg.agent.hostAliases)} '') cfg.agent.hostAliases)}
''; '';
};
systemd.user.services.ssh-agent = { systemd.user.services.ssh-agent = {
enable = true; enable = true;