From ecd2885037c1f441559e2640c6ebd41fdf0a34c2 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 17 Oct 2022 21:09:58 +0200 Subject: [PATCH] hosts/hydra-1: make ssh key accessible to hydra and pin hydra-2 host key --- hosts/hydra-1/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/hydra-1/configuration.nix b/hosts/hydra-1/configuration.nix index 8aed4fb..2168e0a 100644 --- a/hosts/hydra-1/configuration.nix +++ b/hosts/hydra-1/configuration.nix @@ -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;