This commit is contained in:
TheWanderingCrow 2025-06-30 16:28:33 -04:00
parent b059bbbb0c
commit 2a2802303e

View file

@ -5,6 +5,18 @@
pkgs,
...
}: {
# Setup access to protected repos via our host ssh key
environment.etc."ssh/root_config".text = ''
Host github.com
User git
PreferredAuthentications publickey
IdentityFile /etc/ssh/ssh_host_ed25519_key
'';
system.activationScripts.rootSSHConfig.text = ''
install -m 0600 -o root -g root /etc/ssh/root_config /root/.ssh/config
'';
programs.ssh = {
startAgent = true;
};