summaryrefslogtreecommitdiff
path: root/ci.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ci.nix')
-rw-r--r--ci.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/ci.nix b/ci.nix
deleted file mode 100644
index f3ec82a..0000000
--- a/ci.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{self, ...}: {
- perSystem = {
- lib,
- pkgs,
- system,
- self',
- ...
- }: {
- packages.ciGate = let
- toTopLevel = cfg: cfg.config.system.build.toplevel or cfg.activationPackage;
- isCompatible = cfg: cfg.pkgs.system == system;
-
- configurations =
- map
- (type:
- lib.mapAttrs (lib.const toTopLevel)
- (lib.filterAttrs (lib.const isCompatible) self.${type}))
- [
- "nixosConfigurations"
- "darwinConfigurations"
- "homeConfigurations"
- ];
-
- required = lib.concatMap lib.attrValues (
- lib.flatten [self'.checks self'.devShells configurations]
- );
- in
- pkgs.writeText "ci-gate" (
- lib.concatMapStringsSep "\n" toString required
- );
- };
-}