hydra: fix platforms, try 2

This commit is contained in:
Sandro - 2022-09-21 20:24:48 +02:00
parent 959b3d00b7
commit 05f74ab4eb
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 14 additions and 1 deletions

View File

@ -61,7 +61,6 @@
allowed-uris = http:// https:// ssh://
builders-use-substitutes = true
experimental-features = ca-derivations nix-command flakes
extra-platforms = riscv64-linux
'';
trustedUsers = [ "hydra" "root" ];
buildMachines = [{
@ -81,6 +80,10 @@
services = {
hydra-dev = {
enable = true;
buildMachinesFiles = [
"/etc/nix/machines"
"/var/lib/hydra/machines"
];
hydraURL = "https://hydra.hq.c3d2.de";
logo = ./c3d2.svg;
minimumDiskFree = 1;
@ -138,6 +141,16 @@
MemorySwapMax = "64G";
};
hydra-init.preStart = let
platforms = [ "x86_64-linux" ]
# use dacbert for arm
++ lib.filter (e: e != "aarch64-linux" && !(lib.hasPrefix "armv" e)) config.nix.settings.extra-platforms;
in ''
cat << EOF > ~/machines
localhost ${lib.concatStringsSep "," platforms} - 4 5 - -
EOF
'';
nix-daemon.serviceConfig = {
CPUWeight = 5;
MemoryHigh = "64G";