chore: integrate treefmt
This commit is contained in:
parent
3c95151c88
commit
2fe7988a48
6 changed files with 154 additions and 23 deletions
38
treefmt.nix
Normal file
38
treefmt.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
_: {
|
||||
settings = {
|
||||
|
||||
# General config
|
||||
# allow-missing-formatter = true;
|
||||
on-unmatched = "debug";
|
||||
global.excludes = [
|
||||
# lock files
|
||||
"*.lock"
|
||||
];
|
||||
formatter.actionlint = {
|
||||
options = [
|
||||
"-config-file"
|
||||
".forgejo/actionlint.yaml"
|
||||
];
|
||||
includes = [
|
||||
".forgejo/workflows/*.yml"
|
||||
".forgejo/workflows/*.yaml"
|
||||
];
|
||||
};
|
||||
formatter.yamlfmt.excludes = [
|
||||
".forgejo/*"
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
# Nix
|
||||
deadnix.enable = true;
|
||||
nixfmt.enable = true;
|
||||
statix.enable = true;
|
||||
|
||||
# Config files
|
||||
yamlfmt.enable = true;
|
||||
|
||||
# ActionLint/forgejo workflows
|
||||
actionlint.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue