test
This commit is contained in:
parent
b059bbbb0c
commit
2a2802303e
1 changed files with 12 additions and 0 deletions
|
|
@ -5,6 +5,18 @@
|
||||||
pkgs,
|
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 = {
|
programs.ssh = {
|
||||||
startAgent = true;
|
startAgent = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue