Declarative jobset for Hydra CI

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

View file

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

View file

@ -23,19 +23,26 @@ in
}; };
}; };
nix.buildMachines = [ nix = {
{ settings.allowed-uris = [
hostName = "localhost"; "github:"
protocol = null; "git+https://github.com/"
system = "x86_64-linux"; "git+ssh://github.com/"
supportedFeatures = [ ];
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
];
maxJobs = 6;
}
];
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": "flake",
"flake": "git+https://forgejo.sinerva.eu/VSinerva/nixos-conf.git",
"checkinterval": 300,
"schedulingshares": 100,
"enableemail": false,
"enable_dynamic_run_command": false,
"emailoverride": "",
"keepnr": 2
}
}