Closed Verantor closed 3 weeks ago
Something like this:
{
# ...
checks = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (
system:
let
inherit (nixpkgs) lib;
nixosMachines = lib.mapAttrs' (
name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
in
nixosMachines
);
}
How do I add checks to my normal NixOS flake. I have looked at your config and i cant wrap my head around on how to add checks to my flake.nix
I have attached my flake that i use right now: