nix-flake-outputs-size/flake.nix
Jalil David Salamé Messina c092a886c8
Some checks failed
/ check (treefmt) (push) Successful in 4s
/ report-size (push) Failing after 5s
/ report-download-check (push) Has been skipped
WIP: refactor: port to JS
This should hopefully reduce the complexity of the action
2025-07-10 23:59:52 +02:00

45 lines
1.2 KiB
Nix

{
description = "Description for the project";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
systems.url = "github:nix-systems/default";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.treefmt-nix.flakeModule ];
systems = import inputs.systems;
perSystem =
{ pkgs, ... }:
{
# Export pkgs.hello so we can test this action
packages = { inherit (pkgs) hello; };
# Setup formatters
treefmt = {
# Ignore images
settings.global.excludes = [
"*.png"
"dist/*"
];
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
shfmt.enable = true;
shellcheck.enable = true;
statix.enable = true;
typos.enable = true;
yamlfmt.enable = true;
};
};
};
};
}