From a9875ffc4adab6944d75767c0fe5bbe74fed74be Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 23 Apr 2023 21:17:27 -0400 Subject: don't build system configurations in ci --- flake.nix | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 485881a..0f23fd7 100644 --- a/flake.nix +++ b/flake.nix @@ -100,8 +100,8 @@ agenix, haumea, getchoo, - nixinate, nixpkgs, + nixinate, openwrt-imagebuilder, pre-commit-hooks, flake-parts, @@ -119,13 +119,6 @@ }; in getchoo.lib (inputs // args); - - systems = [ - "x86_64-linux" - "aarch64-linux" - "x86_64-darwin" - "aarch64-darwin" - ]; in flake-parts.lib.mkFlake {inherit inputs;} { imports = [ @@ -145,15 +138,34 @@ }; }; - herculesCI.ciSystems = ["x86_64-linux"]; + herculesCI = let + inherit (import (inputs.hercules-ci-effects + "/vendor/hercules-ci-agent/default-herculesCI-for-flake.nix")) flakeToOutputs; + in rec { + ciSystems = ["x86_64-linux"]; + onPush = { + default = { + outputs = with nixpkgs.lib; + # use defaults, but don't build hosts + mkForce (builtins.removeAttrs + (flakeToOutputs self {ciSystems = genAttrs ciSystems (_: {});}) + ["nixosConfigurations" "packages"]); + }; + }; + }; - inherit systems; + systems = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; perSystem = { pkgs, system, ... }: { + apps = (nixinate.nixinate.${system} self).nixinate; checks = { pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run { src = ./.; @@ -196,6 +208,5 @@ turret = callPackage ./hosts/_turret {inherit openwrt-imagebuilder;}; }; }; - } - // {apps = nixpkgs.lib.genAttrs systems (system: nixinate.nixinate.${system} self);}; + }; } -- cgit v1.2.3