diff --git a/flake.nix b/flake.nix index 56a3c44..7d3c0b2 100644 --- a/flake.nix +++ b/flake.nix @@ -57,13 +57,15 @@ gdb ]; }; - packages = { - rust-template = rustPkgs.workspace.rust-template {}; - }; + packages = pkgs.lib.mapAttrs (_: v: v {}) rustPkgs.workspace; nixosModules.default = import ./nixos { inherit inputs system; }; - hydraJobs = packages; + checks = pkgs.lib.mapAttrs (_: v: pkgs.rustBuilder.runTests v {}) rustPkgs.workspace; + hydraJobs = { + inherit packages checks; + }; + formatter = pkgs.alejandra; }); } # Trick renovate into working: "github:NixOS/nixpkgs/nixpkgs-unstable"