astro: init astro template
This commit is contained in:
parent
a4368b5ddc
commit
44feb0b485
40 changed files with 3355 additions and 4258 deletions
18
templates/astro/flake/formatter.nix
Normal file
18
templates/astro/flake/formatter.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
writeShellApplication,
|
||||
nixfmt-rfc-style,
|
||||
deadnix,
|
||||
statix,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "linter";
|
||||
runtimeInputs = [
|
||||
nixfmt-rfc-style
|
||||
deadnix
|
||||
statix
|
||||
];
|
||||
text = ''
|
||||
nixfiles="$(find . -iname "*.nix")"
|
||||
eval "$(awk '{printf "nixfmt %s; deadnix -e %s; statix fix %s\n", $0, $0, $0}' <<< "$nixfiles")"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue