From 4a076a33533257ae4d3e296f29837b68a49aa40d Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 23 Apr 2024 13:16:11 -0500 Subject: [PATCH] No need for hydraJobs anymroe. --- flake.nix | 1 - hydra.nix | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100644 hydra.nix diff --git a/flake.nix b/flake.nix index b3affd5..5a2ff2e 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/hydra.nix b/hydra.nix deleted file mode 100644 index d3b1651..0000000 --- a/hydra.nix +++ /dev/null @@ -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; -} \ No newline at end of file