2022-10-15 13:09:48 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../configuration/proxmox-vm
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/vda";
|
|
|
|
|
2023-04-16 16:17:13 +02:00
|
|
|
boot.binfmt.emulatedSystems = [
|
|
|
|
"armv6l-linux"
|
|
|
|
"armv7l-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
|
|
|
|
2022-10-15 13:09:48 +02:00
|
|
|
networking.hostName = "hydra-2";
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.ens18.ipv6.addresses = [ { address = "2001:638:904:ffc1::100"; prefixLength = 64; } ];
|
|
|
|
networking.interfaces.ens18.ipv4.addresses = [ { address = "141.24.50.112"; prefixLength = 24; } ];
|
2023-02-06 14:19:04 +01:00
|
|
|
networking.defaultGateway6 = { address = "2001:638:904:ffc1::1"; interface = "ens18"; };
|
2022-10-15 13:09:48 +02:00
|
|
|
networking.defaultGateway = { address = "141.24.50.1"; interface = "ens18"; };
|
|
|
|
networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
|
|
|
|
|
|
|
|
# Allow Hydra to fetch remote URLs in restricted mode
|
|
|
|
nix.settings.allowed-uris = "http:// https://";
|
|
|
|
|
2023-04-21 22:07:54 +02:00
|
|
|
services.openssh.settings= {
|
|
|
|
PermitRootLogin = "yes";
|
|
|
|
};
|
2022-10-15 16:04:40 +02:00
|
|
|
|
|
|
|
users.extraUsers.root.openssh.authorizedKeys.keys = [
|
2022-10-15 17:58:59 +02:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMv8Lbca/CR4das3HJ2F/sQ9dA7kdGS1hSVTt5lX4diP root@hydra-1"
|
2022-10-15 16:04:40 +02:00
|
|
|
];
|
|
|
|
|
2022-10-15 13:09:48 +02:00
|
|
|
clerie.monitoring = {
|
|
|
|
enable = true;
|
|
|
|
id = "211";
|
|
|
|
pubkey = "aWtxaM6GKhPwIJWRIQSqJwUa6nhfnD89JkkN9bt2NwE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|