config: add hydraJobs to the outputs

This commit is contained in:
Gabriel Arazas 2022-11-21 20:33:58 +08:00
parent b3452258fd
commit 9bd62dba58
2 changed files with 19 additions and 0 deletions

View File

@ -122,6 +122,8 @@ This mainly uses the link:./hosts/[hosts configuration].
* `templates` which contains my templates.
Though, these are just templates mostly for my own purposes so it is not as useful as the other outputs.
* `hydraJobs` contains link:https://github.com/NixOS/hydra[Hydra] build jobs where it is primarily used for my test Hydra instance.
* `lib` is defined from link:./lib/[my custom library].
It mainly assumes it is to be included in nixpkgs standard library (i.e., `import ./lib { lib = inputs.nixpkgs.lib; }`).
It's another unnecessary export but it's there.

View File

@ -412,5 +412,22 @@
checks = lib'.mapAttrs
(system: deployLib: deployLib.deployChecks self.deploy)
inputs.deploy.lib;
# I'm cut off from the rest of my setup with no Hydra instance yet but
# I'm sure it will grow some of them as long as you didn't put it under a
# rock.
hydraJobs =
lib'.mapAttrs'
(name: config:
lib'.nameValuePair "nixos-${name}" config.config.system.build.toplevel)
self.nixosConfigurations
// lib'.mapAttrs'
(name: config:
lib'.nameValuePair "home-manager-${name}" config.activationPackage)
self.homeManagerConfigurations
// {
build-packages = forAllSystems (system:
self.packages.${system});
};
};
}