2024-06-23 01:12:35 +00:00
|
|
|
{ inputs, lib, pkgs, ... }:
|
2023-08-03 20:56:37 +00:00
|
|
|
let
|
|
|
|
gcc-system-features = arch: lib.optionals (arch != null) ([ "gccarch-${arch}" ]
|
|
|
|
++ map (x: "gccarch-${x}") lib.systems.architectures.inferiors.${arch});
|
|
|
|
in
|
2023-06-05 15:50:07 +00:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../modules/ipmi-supermicro.nix
|
|
|
|
../modules/hardware/supermicro-H12SSL-i.nix
|
2023-06-08 15:43:37 +00:00
|
|
|
../modules/iperf-server.nix
|
2023-07-02 15:46:01 +00:00
|
|
|
../modules/hypervisor.nix
|
2023-08-01 15:00:14 +00:00
|
|
|
../modules/hydra/coordinator.nix
|
2023-08-23 11:00:22 +00:00
|
|
|
../modules/android-cache.nix
|
2023-08-22 20:14:20 +00:00
|
|
|
../modules/garage.nix
|
2023-08-16 13:22:54 +00:00
|
|
|
../modules/users/friends.nix
|
2023-06-05 15:50:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "epyc";
|
2023-08-22 20:14:20 +00:00
|
|
|
|
2023-06-05 15:50:07 +00:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2024-04-30 14:56:04 +00:00
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
rootless.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-06-08 10:23:39 +00:00
|
|
|
# TODO: there's a critical bug on 6.8+ where btrfs won't mount the rootfs at all.
|
|
|
|
# Do not upgrade until it is fixed. Ping Raito when needed.
|
2024-06-23 01:12:35 +00:00
|
|
|
boot.kernelPackages = let
|
|
|
|
pkgsForKernel = import inputs.nixpkgs-for-kernel {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
};
|
|
|
|
in pkgsForKernel.linuxPackages_6_7;
|
2024-01-05 17:02:22 +00:00
|
|
|
|
2023-08-22 16:42:50 +00:00
|
|
|
# Open public access to our PostgreSQL.
|
2024-02-12 18:07:59 +00:00
|
|
|
services.postgresql.enable = true;
|
2023-08-22 16:42:50 +00:00
|
|
|
services.postgresql.enableTCPIP = true;
|
2023-08-22 19:17:31 +00:00
|
|
|
services.postgresql.authentication = ''
|
2024-06-14 20:17:49 +00:00
|
|
|
host hydra-nixos-org hydra_ro ::/0 trust
|
2023-08-22 19:17:31 +00:00
|
|
|
'';
|
2023-08-22 16:42:50 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 5432 ];
|
|
|
|
|
2023-08-03 20:56:37 +00:00
|
|
|
nix.buildMachines = [
|
2024-06-14 20:17:49 +00:00
|
|
|
{
|
|
|
|
hostName = "localhost";
|
2023-08-03 20:56:37 +00:00
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"riscv64-linux"
|
|
|
|
];
|
|
|
|
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ] ++ gcc-system-features "znver3";
|
2023-08-12 23:24:09 +00:00
|
|
|
maxJobs = 2;
|
2023-08-03 20:56:37 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-08-01 15:00:14 +00:00
|
|
|
boot.binfmt.emulatedSystems = [ "riscv64-linux" "aarch64-linux" "riscv64-linux" ];
|
2023-08-01 14:48:49 +00:00
|
|
|
|
2023-06-05 15:50:07 +00:00
|
|
|
simd.arch = "znver3";
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|