diff options
Diffstat (limited to 'template')
| -rw-r--r-- | template/flake.nix | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/template/flake.nix b/template/flake.nix index 4a06e40..35515da 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -5,23 +5,28 @@ flake-checks.url = "github:getchoo/flake-checks"; }; - outputs = { - nixpkgs, - flake-utils, - flake-checks, - ... - }: - flake-utils.lib.eachDefaultSystem (system: let - pkgs = nixpkgs.legacyPackages.${system}; - flake-checks' = flake-checks.lib.mkChecks { - inherit pkgs; - root = ./.; - }; - in { - checks = { - check-actionlint = flake-checks'.actionlint; - check-alejandra = flake-checks'.alejandra; - check-deadnix = flake-checks'.deadnix; - }; - }); + outputs = + { + nixpkgs, + flake-utils, + flake-checks, + ... + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages.${system}; + flake-checks' = flake-checks.lib.mkChecks { + inherit pkgs; + root = ./.; + }; + in + { + checks = { + check-actionlint = flake-checks'.actionlint; + check-deadnix = flake-checks'.deadnix; + check-nixfmt = flake-checks'.nixfmt; + }; + } + ); } |
