astro: init astro template

This commit is contained in:
Artur Manuel 2025-04-07 02:08:46 +01:00
commit 44feb0b485
Signed by: amadaluzia
SSH key fingerprint: SHA256:ubvwT66gNUKSsgSzEb2UQnX8pzTq5N+r8eRVYGJJm4Q
40 changed files with 3355 additions and 4258 deletions

View 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")"
'';
}