1
0

hosts/hydra-1: make ssh key accessible to hydra and pin hydra-2 host key

This commit is contained in:
clerie 2022-10-17 21:09:58 +02:00
parent 139fe5a443
commit ecd2885037

View File

@ -28,12 +28,14 @@
{
hostName = "hydra-2.net.clerie.de";
system = "x86_64-linux";
sshKey = "/root/.ssh/id_ed25519";
sshKey = "/var/lib/hydra/id_ed25519";
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSURaRUQ5UU0rcWU3c0I2UjZhdHZQNldOYUkyc0Mybmg3VFRzRDZrZ1JwbnIgcm9vdEBoeWRyYS0yCg==";
}
];
};
programs.ssh.knownHosts."hydra-2.net.clerie.de".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDZED9QM+qe7sB6R6atvP6WNaI2sC2nh7TTsD6kgRpnr root@hydra-2";
services.hydra = {
enable = true;
port = 3001;