services/ssh: init ssh agent

This commit is contained in:
Kevin Baensch 2025-07-02 15:37:03 +02:00
parent 6333da56b2
commit d8336829ee
Signed by: derped
SSH key fingerprint: SHA256:8/FSu/lmp3c1Z17Gml06JRIEHtDjhwdd7g6pBaHQWBc

9
services/ssh.nix Normal file
View file

@ -0,0 +1,9 @@
{ lib, config, pkgs, ... }:
lib.mkIf (lib.elem "ssh" config.machine.services) {
programs.ssh = {
enableAskPassword = true;
askPassword = "${pkgs.wayprompt}/bin/wayprompt-ssh-askpass";
startAgent = true;
};
}