feat: try again with hydra

This commit is contained in:
Noa Aarts 2024-10-21 18:18:23 +02:00
parent a65d265c15
commit 19898a0743
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 60 additions and 15 deletions

View file

@ -43,6 +43,16 @@
hashedPassword = "$6$rounds=512400$g/s4dcRttXi4ux6c$Z6pKnhJXcWxv0TBSMtvJu5.piETdUBSgBVN7oDPKiQV.lbTYz1r.0XQLwMYxzcvaaX0DL6Iw/SEUTiC2M50wC/";
openssh.authorizedKeys.keys = import ../../common/ssh-keys.nix;
};
remotebuilder = {
isNormalUser = true;
hashedPassword = "!";
description = "Remote nix builder";
openssh.authorizedKeys.keys =
[
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILRZXNqs7FgVeTCt2ElOARt5f/bR1gjk5bS+zCJA6C1P root@nuOS"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII7X17VovmxkwhKxIg795yO1Sf7dwO50pybMRlUDLLcA hydra@nuOS"
];
};
};
# Allow unfree packages
@ -89,9 +99,29 @@
};
nix = {
buildMachines = [ ];
distributedBuilds = false;
settings.builders-use-substitutes = true;
buildMachines = [
{
hostName = "localhost";
protocol = null;
system = "x86_64-linux";
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
maxJobs = 4;
sshUser = "remotebuilder";
}
{
hostName = "lambdaos";
protocol = "ssh";
system = "x86_64-linux";
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
maxJobs = 8;
sshUser = "remotebuilder";
}
];
distributedBuilds = true;
settings = {
builders-use-substitutes = true;
trusted-users = [ "root" "remotebuilder" "@wheel" ];
};
};
systemd.services."update-from-flake" = {
@ -146,16 +176,16 @@
};
services = {
# hydra = {
# enable = true;
# hydraURL = "https://hydra.itepastra.nl";
# port = 9212;
# notificationSender = "hydra@localhost";
# useSubstitutes = true;
# # listenHost = "localhost";
# minimumDiskFree = 100;
# minimumDiskFreeEvaluator = 100;
# };
hydra = {
enable = true;
hydraURL = "https://hydra.itepastra.nl";
port = 9212;
notificationSender = "hydra@localhost";
useSubstitutes = true;
# listenHost = "localhost";
minimumDiskFree = 100;
minimumDiskFreeEvaluator = 100;
};
nix-serve = {
enable = true;
package = pkgs.nix-serve-ng;