2023-09-04 22:09:40 +02:00
|
|
|
{ config, pkgs, ... }:
|
2023-03-31 18:27:25 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2024-06-03 09:20:11 +02:00
|
|
|
../common/xeon.nix
|
2023-03-31 18:27:25 +02:00
|
|
|
|
2023-09-04 21:59:04 +02:00
|
|
|
../module/ceph.nix
|
2023-12-01 19:57:04 +01:00
|
|
|
../module/debuginfod.nix
|
2024-07-19 17:53:10 +02:00
|
|
|
../module/emulation.nix
|
2024-02-09 11:14:34 +01:00
|
|
|
../module/slurm-client.nix
|
2023-03-31 18:27:25 +02:00
|
|
|
./gitlab-runner.nix
|
2023-04-05 17:00:01 +02:00
|
|
|
./monitoring.nix
|
2023-04-06 13:57:32 +02:00
|
|
|
./nfs.nix
|
2024-02-09 11:14:34 +01:00
|
|
|
./slurm-server.nix
|
2023-09-12 12:19:43 +02:00
|
|
|
./nix-serve.nix
|
2023-12-07 11:08:15 +01:00
|
|
|
./public-inbox.nix
|
2024-04-26 16:52:52 +02:00
|
|
|
./gitea.nix
|
2024-05-02 17:54:09 +02:00
|
|
|
./msmtp.nix
|
2024-05-30 13:35:58 +02:00
|
|
|
./postgresql.nix
|
2023-08-25 13:21:00 +02:00
|
|
|
#./pxe.nix
|
2023-08-23 17:42:50 +02:00
|
|
|
];
|
|
|
|
|
2023-04-18 18:28:37 +02:00
|
|
|
# Select the this using the ID to avoid mismatches
|
|
|
|
boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN";
|
|
|
|
|
2024-07-23 16:15:26 +02:00
|
|
|
fileSystems."/nvme" = {
|
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-label/nvme";
|
|
|
|
};
|
|
|
|
|
2023-04-18 18:49:54 +02:00
|
|
|
networking = {
|
2023-06-14 11:15:00 +02:00
|
|
|
hostName = "hut";
|
2023-04-18 18:49:54 +02:00
|
|
|
interfaces.eno1.ipv4.addresses = [ {
|
|
|
|
address = "10.0.40.7";
|
|
|
|
prefixLength = 24;
|
|
|
|
} ];
|
|
|
|
interfaces.ibp5s0.ipv4.addresses = [ {
|
|
|
|
address = "10.0.42.7";
|
|
|
|
prefixLength = 24;
|
|
|
|
} ];
|
2024-07-17 12:56:59 +02:00
|
|
|
firewall = {
|
|
|
|
extraCommands = ''
|
|
|
|
# Accept all proxy traffic from compute nodes but not the login
|
|
|
|
iptables -A nixos-fw -p tcp -s 10.0.40.30 --dport 23080 -j nixos-fw-log-refuse
|
|
|
|
iptables -A nixos-fw -p tcp -s 10.0.40.0/24 --dport 23080 -j nixos-fw-accept
|
|
|
|
'';
|
|
|
|
};
|
2023-04-18 18:49:54 +02:00
|
|
|
};
|
2024-07-17 12:56:59 +02:00
|
|
|
|
|
|
|
# Allow proxy to bind to the ethernet interface
|
|
|
|
services.openssh.settings.GatewayPorts = "clientspecified";
|
2023-03-31 18:27:25 +02:00
|
|
|
}
|