2024-10-26 13:23:22 +02:00
|
|
|
{ inputs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.treefmt-nix.flakeModule
|
|
|
|
./package.nix
|
|
|
|
./overlay.nix
|
|
|
|
./module.nix
|
2024-10-26 13:23:22 +02:00
|
|
|
./tests.nix
|
2024-10-26 13:23:22 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
perSystem =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
# Setup formatters
|
|
|
|
treefmt = {
|
|
|
|
projectRootFile = "flake.nix";
|
|
|
|
programs = {
|
|
|
|
nixfmt.enable = true;
|
|
|
|
rustfmt.enable = true;
|
|
|
|
statix.enable = true;
|
|
|
|
typos.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShellNoCC {
|
|
|
|
packages = [
|
|
|
|
pkgs.cargo-insta
|
|
|
|
pkgs.cargo-udeps
|
|
|
|
pkgs.mold
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|