mirror of
https://github.com/blahai/nyx.git
synced 2025-02-23 23:15:10 +00:00
42 lines
771 B
Nix
42 lines
771 B
Nix
|
{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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|