summaryrefslogtreecommitdiff
path: root/hydraJobs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hydraJobs.nix')
-rw-r--r--hydraJobs.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/hydraJobs.nix b/hydraJobs.nix
new file mode 100644
index 0000000..ba26af5
--- /dev/null
+++ b/hydraJobs.nix
@@ -0,0 +1,27 @@
+{
+ lib,
+ self,
+ withSystem,
+ ...
+}: let
+ ciSystem = "x86_64-linux";
+ derivFromCfg = deriv: deriv.config.system.build.toplevel or deriv.activationPackage;
+ mapCfgsToDerivs = lib.mapAttrs (lib.const derivFromCfg);
+in {
+ flake.hydraJobs = withSystem ciSystem ({
+ pkgs,
+ self',
+ ...
+ }: {
+ inherit (self') checks;
+ inherit (self') devShells;
+ darwinConfigurations = mapCfgsToDerivs self.darwinConfigurations;
+ homeConfigurations = mapCfgsToDerivs self.homeConfigurations;
+ nixosConfigurations =
+ mapCfgsToDerivs self.nixosConfigurations
+ // {
+ # please add aarch64 runners github...please...
+ atlas = lib.deepSeq (derivFromCfg self.nixosConfigurations.atlas).drvPath pkgs.emptyFile;
+ };
+ });
+}