Declarative jobset for Hydra CI
This commit is contained in:
parent
3dba050d34
commit
d3b8b04307
3 changed files with 47 additions and 14 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
nixvim,
|
||||
disko,
|
||||
|
@ -74,5 +75,10 @@
|
|||
) aarch64-linux-hosts
|
||||
)
|
||||
);
|
||||
hydraJobs = {
|
||||
inherit (self.nixosConfigurations)
|
||||
x86_64-hosts
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
15
spec.json
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue