21 lines
440 B
Nix
21 lines
440 B
Nix
{ ... }:
|
|
{
|
|
sops.secrets."ssh/sas/key" = {
|
|
sopsFile = ../../../../secrets/sas/secrets.yaml;
|
|
key = "ssh/key";
|
|
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
|
|
|
|
Host gitlab.sas.com
|
|
User git
|
|
HostName gitlab.sas.com
|
|
IdentityFile /root/.ssh/ssh_sas_ed25519_key
|
|
'';
|
|
}
|