From 45cc2a78b5081c1f6cc0026ba9e6a45f909edc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 24 Aug 2023 14:38:24 +0200 Subject: [PATCH] flake: test all flake outputs --- checks/flake-module.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/checks/flake-module.nix b/checks/flake-module.nix index 3f0fd1646..c5e92ac5f 100644 --- a/checks/flake-module.nix +++ b/checks/flake-module.nix @@ -1,5 +1,5 @@ { self, ... }: { - perSystem = { pkgs, ... }: { + perSystem = { pkgs, lib, self', ... }: { checks = let nixosTestArgs = { @@ -15,7 +15,12 @@ schemaTests = pkgs.callPackages ./schemas.nix { inherit self; }; + + 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 - nixosTests // schemaTests; + nixosTests // schemaTests // flakeOutputs; }; }