enable hydra

This commit is contained in:
jopejoe1 2025-06-02 20:42:13 +02:00
parent f609b0212c
commit 295fe0f23d
4 changed files with 22 additions and 3 deletions

View file

@ -88,5 +88,9 @@
};
}
);
hydraJobs = {
inherit (self)
packages formatter nixosConfigurations;
};
};
}

View file

@ -41,13 +41,10 @@ in
"nix-command"
"flakes"
"auto-allocate-uids"
"ca-derivations"
"cgroups"
"dynamic-derivations"
"fetch-closure"
"impure-derivations"
"no-url-literals"
"recursive-nix"
];
auto-allocate-uids = true;
use-cgroups = true;
@ -57,6 +54,10 @@ in
builders-use-substitutes = true;
download-attempts = 1;
fallback = true;
allowed-uris = [
"github:"
"gitlab:"
];
};
buildMachines =
let

View file

@ -182,6 +182,15 @@ in
initialPassword = "backupPassword";
};
services.hydra = {
enable = true;
hydraURL = "https://hydra.missing.ninja";
notificationSender = "hydra@missing.ninja";
buildMachinesFiles = [];
useSubstitutes = true;
};
disko.devices = {
disk = {
vdb = {

View file

@ -55,6 +55,11 @@
enableACME = true;
locations."/".proxyPass = "http://localhost:8080";
};
"hydra.missing.ninja" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:3000";
};
"ci.missing.ninja" = {
forceSSL = true;
enableACME = true;