From 46edb4b7e9979be1f157819573061b0908c0b361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 3 Nov 2025 15:45:39 +0100 Subject: [PATCH] Add flake checks for CI/CD validation This adds a checks attribute to enable automated validation of all build outputs. Checks are included for all packages, devShells, and nixosConfigurations, with appropriate prefixes (package-, devShell-, nixos-) for clarity and organization. --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index a24f2f0..0bf8f5e 100644 --- a/flake.nix +++ b/flake.nix @@ -275,6 +275,16 @@ }; in { + checks = + (pkgs.lib.mapAttrs' (n: pkgs.lib.nameValuePair "package-${n}") self.packages.${system}) + // (pkgs.lib.mapAttrs' (n: pkgs.lib.nameValuePair "devShell-${n}") self.devShells.${system}) + // (pkgs.lib.optionalAttrs (system == "x86_64-linux") { + nixos-testvm = self.nixosConfigurations.testvm-x86_64.config.system.build.toplevel; + }) + // (pkgs.lib.optionalAttrs (system == "aarch64-linux") { + nixos-testvm = self.nixosConfigurations.testvm-aarch64.config.system.build.toplevel; + }); + # packages.libkrunfw = pkgs.libkrunfw; packages.libkrunfw = pkgs.libkrunfw.overrideAttrs (old: { version = "5.0.0";