Declarative jobset for Hydra CI

This commit is contained in:
Vili Sinervä 2025-06-11 22:16:27 +03:00
parent 3dba050d34
commit d3b8b04307
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 47 additions and 14 deletions

View file

@ -15,6 +15,7 @@
outputs =
{
self,
nixpkgs,
nixvim,
disko,
@ -74,5 +75,10 @@
) aarch64-linux-hosts
)
);
hydraJobs = {
inherit (self.nixosConfigurations)
x86_64-hosts
;
};
};
}

View file

@ -16,6 +16,11 @@ in
notificationSender = "hydra@sinerva.eu";
port = 8080;
useSubstitutes = true;
extraConfig = ''
<dynamicruncommand>
enable = 1
</dynamicruncommand>
'';
};
nginx.virtualHosts.${domain}.locations."/" = {
@ -23,19 +28,26 @@ in
};
};
nix.buildMachines = [
{
hostName = "localhost";
protocol = null;
system = "x86_64-linux";
supportedFeatures = [
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
];
maxJobs = 6;
}
];
nix = {
settings.allowed-uris = [
"github:"
"git+https://github.com/"
"git+ssh://github.com/"
];
buildMachines = [
{
hostName = "localhost";
protocol = null;
system = "x86_64-linux";
supportedFeatures = [
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
];
maxJobs = 6;
}
];
};
}

15
spec.json Normal file
View file

@ -0,0 +1,15 @@
{
"systems": {
"enabled": 1,
"hidden": false,
"description": "NixOS Systems",
"type": 1,
"flake": "git+https://forgejo.sinerva.eu/VSinerva/nixos-conf.git",
"checkinterval": 300,
"schedulingshares": 100,
"enableemail": false,
"enable_dynamic_run_command": false,
"emailoverride": "",
"keepnr": 2
}
}