Files
nix/hosts/elara/configs/git/default.nix
Nikolaos Karaolidis b355f72b2e Refactor structure
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-01-09 13:50:26 +00:00

22 lines
481 B
Nix

{ ... }:
{
sops.secrets."ssh/sas/key" = {
sopsFile = ../../../../secrets/sas/secrets.yaml;
path = "/root/.ssh/ssh_sas_ed25519_key";
};
programs.ssh.extraConfig = ''
Host github.com
User git
HostName github.com
IdentityFile /root/.ssh/ssh_sas_ed25519_key
StrictHostKeyChecking no
Host gitlab.sas.com
User git
HostName gitlab.sas.com
IdentityFile /root/.ssh/ssh_sas_ed25519_key
StrictHostKeyChecking no
'';
}