mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
config: add hydraJobs
to the outputs
This commit is contained in:
parent
b3452258fd
commit
9bd62dba58
@ -122,6 +122,8 @@ This mainly uses the link:./hosts/[hosts configuration].
|
|||||||
* `templates` which contains my templates.
|
* `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.
|
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].
|
* `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 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.
|
It's another unnecessary export but it's there.
|
||||||
|
17
flake.nix
17
flake.nix
@ -412,5 +412,22 @@
|
|||||||
checks = lib'.mapAttrs
|
checks = lib'.mapAttrs
|
||||||
(system: deployLib: deployLib.deployChecks self.deploy)
|
(system: deployLib: deployLib.deployChecks self.deploy)
|
||||||
inputs.deploy.lib;
|
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});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user