2022-10-13 00:03:32 +01:00
|
|
|
{lib, ...}: {
|
|
|
|
users.users.tlater.password = "insecure";
|
|
|
|
|
|
|
|
# Disable graphical tty so -curses works
|
|
|
|
boot.kernelParams = ["nomodeset"];
|
|
|
|
|
|
|
|
# Sets the base domain for nginx to localhost so that we
|
|
|
|
# can easily test locally with the VM.
|
|
|
|
services.nginx.domain = lib.mkOverride 99 "localhost";
|
|
|
|
|
|
|
|
# Use the staging secrets
|
|
|
|
sops.defaultSopsFile = lib.mkOverride 99 ../../keys/staging.yaml;
|
|
|
|
|
2023-04-23 15:46:38 +01:00
|
|
|
systemd.network.networks."10-eth0" = {
|
|
|
|
matchConfig.Name = "eth0";
|
|
|
|
networkConfig.DHCP = "yes";
|
|
|
|
};
|
|
|
|
|
2023-12-29 15:10:00 +00:00
|
|
|
# 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.
|
|
|
|
environment.etc."staging.key" = {
|
|
|
|
mode = "0400";
|
|
|
|
source = ../../keys/hosts/staging.key;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh.hostKeys = lib.mkForce [
|
|
|
|
{
|
|
|
|
type = "rsa";
|
|
|
|
bits = 4096;
|
|
|
|
path = "/etc/staging.key";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2022-10-13 00:03:32 +01:00
|
|
|
# # Set up VM settings to match real VPS
|
|
|
|
# virtualisation.memorySize = 3941;
|
|
|
|
# virtualisation.cores = 2;
|
|
|
|
}
|