mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-15 19:30:31 +03:00
18 lines
471 B
Nix
18 lines
471 B
Nix
{ inputs, ... }: {
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
];
|
|
perSystem = { config, ... }: {
|
|
treefmt = {
|
|
projectRootFile = "flake.nix";
|
|
programs.mdsh.enable = true;
|
|
programs.nixpkgs-fmt.enable = true;
|
|
programs.shellcheck.enable = true;
|
|
programs.shfmt.enable = true;
|
|
programs.deno.enable = true;
|
|
settings.formatter.shellcheck.options = [ "-s" "bash" ];
|
|
};
|
|
formatter = config.treefmt.build.wrapper;
|
|
};
|
|
}
|