Files
nextjs-python-web-template/checks/flake-module.nix
Luis 1f70b42401
Some checks failed
checks-impure / test (pull_request) Failing after 40s
checks / test (pull_request) Successful in 4m31s
Fixing broken CI
2023-10-23 03:08:27 +02:00

18 lines
633 B
Nix

{ self, ... }: {
imports = [
./impure/flake-module.nix
];
perSystem = { lib, self', ... }: {
checks =
let
flakeOutputs = lib.mapAttrs' (name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel) self.nixosConfigurations
// lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages
// lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells
// lib.mapAttrs' (name: config: lib.nameValuePair "home-manager-${name}" config.activation-script) (self'.legacyPackages.homeConfigurations or { });
in
flakeOutputs;
};
}