You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
gcc-system-features = arch: lib.optionals (arch != null) ([ "gccarch-${arch}" ]
|
|
|
|
++ map (x: "gccarch-${x}") lib.systems.architectures.inferiors.${arch});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../modules/ipmi-supermicro.nix
|
|
|
|
../modules/hardware/supermicro-H12SSL-i.nix
|
|
|
|
../modules/iperf-server.nix
|
|
|
|
../modules/hypervisor.nix
|
|
|
|
../modules/hydra/coordinator.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "epyc";
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
virtualisation.nvisor.vms = {
|
|
|
|
vm01 = {
|
|
|
|
config = { pkgs, ... }: {
|
|
|
|
environment.systemPackages = [ pkgs.hello ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.buildMachines = [
|
|
|
|
{ hostName = "localhost";
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"riscv64-linux"
|
|
|
|
];
|
|
|
|
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ] ++ gcc-system-features "znver3";
|
|
|
|
maxJobs = 1;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.binfmt.emulatedSystems = [ "riscv64-linux" "aarch64-linux" "riscv64-linux" ];
|
|
|
|
|
|
|
|
simd.arch = "znver3";
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|