hydra: fix platforms, try 2
This commit is contained in:
parent
959b3d00b7
commit
05f74ab4eb
|
@ -61,7 +61,6 @@
|
||||||
allowed-uris = http:// https:// ssh://
|
allowed-uris = http:// https:// ssh://
|
||||||
builders-use-substitutes = true
|
builders-use-substitutes = true
|
||||||
experimental-features = ca-derivations nix-command flakes
|
experimental-features = ca-derivations nix-command flakes
|
||||||
extra-platforms = riscv64-linux
|
|
||||||
'';
|
'';
|
||||||
trustedUsers = [ "hydra" "root" ];
|
trustedUsers = [ "hydra" "root" ];
|
||||||
buildMachines = [{
|
buildMachines = [{
|
||||||
|
@ -81,6 +80,10 @@
|
||||||
services = {
|
services = {
|
||||||
hydra-dev = {
|
hydra-dev = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
buildMachinesFiles = [
|
||||||
|
"/etc/nix/machines"
|
||||||
|
"/var/lib/hydra/machines"
|
||||||
|
];
|
||||||
hydraURL = "https://hydra.hq.c3d2.de";
|
hydraURL = "https://hydra.hq.c3d2.de";
|
||||||
logo = ./c3d2.svg;
|
logo = ./c3d2.svg;
|
||||||
minimumDiskFree = 1;
|
minimumDiskFree = 1;
|
||||||
|
@ -138,6 +141,16 @@
|
||||||
MemorySwapMax = "64G";
|
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 = {
|
nix-daemon.serviceConfig = {
|
||||||
CPUWeight = 5;
|
CPUWeight = 5;
|
||||||
MemoryHigh = "64G";
|
MemoryHigh = "64G";
|
||||||
|
|
Loading…
Reference in New Issue