staging: Use a static ssh host key

This commit is contained in:
Tristan Daniël Maat 2023-12-29 16:10:00 +01:00
parent 4e5379eadd
commit 920e0eb28a
Signed by: tlater
GPG key ID: 49670FD774E43268
6 changed files with 92 additions and 31 deletions

View file

@ -16,6 +16,17 @@
networkConfig.DHCP = "yes";
};
# Both so we have a predictable key for the staging env, as well as
# to have a static key for decrypting the sops secrets for the
# staging env.
services.openssh.hostKeys = lib.mkForce [
{
type = "rsa";
bits = 4096;
path = ../../keys/hosts/staging.key;
}
];
# # Set up VM settings to match real VPS
# virtualisation.memorySize = 3941;
# virtualisation.cores = 2;