diff --git a/modules/services/ssh.nix b/modules/services/ssh.nix index 6c910f5..b63c4ab 100644 --- a/modules/services/ssh.nix +++ b/modules/services/ssh.nix @@ -2,10 +2,20 @@ lib, config, ... -}: { +}: let + inherit (config.local.systemVars) username; +in { config = lib.mkIf config.local.profiles.desktop.enable { programs.ssh = { startAgent = true; }; + + hjem.users.${username} = { + files = { + ".ssh/config".text = '' + AddKeysToAgent yes + ''; + }; + }; }; }