mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
Chore: update formatter
This commit is contained in:
parent
3eb72c17d7
commit
880c97dff8
4 changed files with 37 additions and 20 deletions
|
|
@ -1,4 +1,10 @@
|
|||
{inputs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
mkExtensionIgnore = exts: "*.{${lib.concatStringsSep "," exts}}";
|
||||
in {
|
||||
imports = [inputs.treefmt-nix.flakeModule];
|
||||
|
||||
perSystem = {config, ...}: {
|
||||
|
|
@ -10,8 +16,18 @@
|
|||
statix.enable = true;
|
||||
just.enable = true;
|
||||
prettier.enable = true;
|
||||
fish_indent.enable = true;
|
||||
};
|
||||
settings.global.excludes = ["*.{gitignore,svg}"];
|
||||
settings.global.excludes = [
|
||||
"result"
|
||||
"*/node_modules/*"
|
||||
(mkExtensionIgnore [
|
||||
"gitignore"
|
||||
"svg"
|
||||
"age"
|
||||
"pub"
|
||||
])
|
||||
];
|
||||
};
|
||||
formatter = config.treefmt.build.wrapper;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue