refactor(nix): split into flake parts module and add shell.nix chore: add prettier to treefmt and pin version chore(nix): add prettier exclude chore(nix): bump pnpm to v10.18.2 feat(nix): add overlay for nodejs feat(nix): add overlay for nodejs chore: consolidate .editorconfig
25 lines
729 B
Nix
25 lines
729 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
];
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
treefmt = {
|
|
projectRootFile = "flake.nix";
|
|
programs.nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt-rfc-style.compiler;
|
|
programs.nixfmt.package = pkgs.nixfmt-rfc-style;
|
|
programs.prettier.enable = true;
|
|
programs.shellcheck.enable = true;
|
|
programs.yamlfmt.enable = true;
|
|
programs.dockerfmt.enable = true;
|
|
|
|
settings.formatter.prettier.excludes = [ "pnpm-lock.yaml" ];
|
|
settings.formatter.shellcheck.excludes = [ ".envrc" ];
|
|
settings.formatter.yamlfmt.excludes = [ "pnpm-lock.yaml" ];
|
|
};
|
|
};
|
|
}
|