No need for hydraJobs anymroe.

This commit is contained in:
Joseph Hanson 2024-04-23 13:16:11 -05:00
parent 4513f93fb1
commit 4a076a3353
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 0 additions and 19 deletions

View file

@ -71,7 +71,6 @@
inherit (self) outputs;
in
{
hydraJobs = import ./hydra.nix { inherit inputs outputs; };
nixosConfigurations = {
"durincore" = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";

View file

@ -1,18 +0,0 @@
{ inputs, outputs }:
let
inherit (inputs.nixpkgs-stable.lib) filterAttrs mapAttrs elem;
notBroken = pkg: !(pkg.meta.broken or false);
isDistributable = pkg:
(pkg.meta.license or { redistributable = true; }).redistributable;
hasPlatform = sys: pkg: elem sys (pkg.meta.platforms or [ ]);
filterValidPkgs = sys: pkgs:
filterAttrs
(_: pkg: hasPlatform sys pkg && notBroken pkg && isDistributable pkg) pkgs;
getCfg = _: cfg: cfg.config.system.build.toplevel;
getHomeCfg = _: cfg: cfg.config.home.activationPackage;
in {
# pkgs = mapAttrs filterValidPkgs outputs.packages;
hosts = mapAttrs getCfg outputs.nixosConfigurations;
# homes = mapAttrs getHomeCfg outputs.homeConfigurations;
}