mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-22 23:58:29 +03:00
351e874918
Merges work by @montchr, @cmhamill, and @rtimush and rebases on main. - fixes https://github.com/ryantm/agenix/issues/60 - fixes https://github.com/ryantm/agenix/issues/120 - closes https://github.com/ryantm/agenix/pull/107
10 lines
428 B
Nix
10 lines
428 B
Nix
# Do not copy this! It is insecure. This is only okay because we are testing.
|
|
{
|
|
system.activationScripts.extraUserActivation.text = ''
|
|
echo "Installing SSH host key"
|
|
sudo cp ${../example_keys/system1.pub} /etc/ssh/ssh_host_ed25519_key.pub
|
|
sudo cp ${../example_keys/system1} /etc/ssh/ssh_host_ed25519_key
|
|
sudo chmod 644 /etc/ssh/ssh_host_ed25519_key.pub
|
|
sudo chmod 600 /etc/ssh/ssh_host_ed25519_key
|
|
'';
|
|
}
|