too much shit idek anymore

This commit is contained in:
blahai 2025-01-26 00:36:34 +02:00
parent 14843ef945
commit bc82345beb
No known key found for this signature in database
63 changed files with 1759 additions and 346 deletions

View file

@ -0,0 +1,41 @@
{inputs, ...}: {
imports = [inputs.treefmt-nix.flakeModule];
perSystem = {
pkgs,
config,
...
}: {
formatter = config.treefmt.build.wrapper;
treefmt = {
projectRootFile = "flake.nix";
programs = {
shellcheck.enable = true;
taplo.enable = true;
# TODO: configure this to not be ugly
# yamlfmt.enable = true;
nixfmt = {
enable = true;
package = pkgs.alejandra;
};
prettier = {
enable = true;
package = pkgs.prettierd;
excludes = ["*.age"];
settings = {
editorconfig = true;
};
};
shfmt = {
enable = true;
indent_size = 2;
};
};
};
};
}