{ config, pkgs, ... }: { programs.ssh = { startAgent = true; extraConfig = '' Host gitea HostName http://100.89.141.79:3000/ User cookiez IdentityFile ~/.ssh/gitea IdentitiesOnly yes ''; }; environment.etc."ssh-keys/gitea".source = /etc/nixos/other/ssh-keys/gitea; environment.etc."ssh-keys/gitea".mode = "0600"; # Optional: symlink to ~/.ssh #environment.homeFiles = { # ".ssh/gitea" = "/etc/ssh-keys/gitea"; #}; }