refactor: massive refactor using flake-parts; use typos-cli and

keep-sorted
This commit is contained in:
2025-12-20 12:57:47 +08:00
parent d5f027f586
commit bc197eb3ca
21 changed files with 466 additions and 455 deletions

View File

@@ -1,8 +1,16 @@
{ ... }:
{ inputs, ... }:
{
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
stylua.enable = true;
imports = [ inputs.treefmt.flakeModule ];
perSystem.treefmt = {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
stylua.enable = true;
keep-sorted.enable = true;
typos = {
enable = true;
configFile = "typos.toml";
};
};
};
}