mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
33 lines
684 B
Nix
33 lines
684 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: let
|
|
mkExtensionIgnore = exts: "*.{${lib.concatStringsSep "," exts}}";
|
|
in {
|
|
imports = [inputs.treefmt-nix.flakeModule];
|
|
|
|
perSystem = {config, ...}: {
|
|
treefmt = {
|
|
projectRootFile = "flake.nix";
|
|
programs = {
|
|
deadnix.enable = true;
|
|
alejandra.enable = true;
|
|
statix.enable = true;
|
|
just.enable = true;
|
|
prettier.enable = true;
|
|
fish_indent.enable = true;
|
|
};
|
|
settings.global.excludes = [
|
|
"result"
|
|
(mkExtensionIgnore [
|
|
"gitignore"
|
|
"age"
|
|
"pub"
|
|
"svg"
|
|
])
|
|
];
|
|
};
|
|
formatter = config.treefmt.build.wrapper;
|
|
};
|
|
}
|