From 1a140d7fccd97fa0144e4d5102ec1a8d2a0220b3 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 16 Feb 2024 00:53:43 +0100 Subject: [PATCH] ssh known hosts --- modules/base/ssh.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/base/ssh.nix b/modules/base/ssh.nix index 4812e3d..acdb011 100644 --- a/modules/base/ssh.nix +++ b/modules/base/ssh.nix @@ -16,6 +16,15 @@ ]; }; + # ssh-keyscan -t ed25519 -p 222 alpha.caspervk.net + programs.ssh.knownHosts = { + "delta.caspervk.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB0x9oImZjIhoPEwLlHVixIh7y1Kwn+SX17xffrdRzvv"; + "git.caspervk.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvPxSg6XN6znT1T4H0U1lzJBsGY7Uann+TBisWD3Drd"; + "lambda.caspervk.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvPxSg6XN6znT1T4H0U1lzJBsGY7Uann+TBisWD3Drd"; + "sigma.caspervk.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF2Qrh0tpR5YawiYvcPGC4OSnu4//ge1eVdiBDLrTbCx"; + "tor.caspervk.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMVPxvqwS2NMqqCGBkMmExzdBY5hGLegiOuqPJAOfdKk"; + }; + environment.persistence."/nix/persist" = { files = [ "/etc/ssh/ssh_host_ed25519_key"