nixos: add `statix`

This commit is contained in:
Harsh Shandilya 2023-09-21 01:01:57 +05:30
parent 5abefe2570
commit 8d9f8b261e
2 changed files with 8 additions and 0 deletions

View File

@ -176,10 +176,12 @@
runtimeInputs = with pkgs.${system}; [
alejandra
shfmt
statix
];
text = ''
shfmt -w -s -i 2 -ci ${fmtTargetsStr};
alejandra --quiet .
statix check .
'';
};
in "${script}/bin/format";

6
statix.toml Normal file
View File

@ -0,0 +1,6 @@
disabled = [
"repeated_keys"
]
nix_version = '2.4'
ignore = ['.direnv']