1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: fix secrets permissions, move ./packages to flake outputs

This commit is contained in:
2023-02-24 23:10:45 +01:00
parent c51db2b53c
commit c9af430f31
118 changed files with 1201 additions and 2107 deletions

17
packages/kirciuoklis.nix Normal file
View File

@@ -0,0 +1,17 @@
{
writers,
curl,
jq,
}:
writers.writeDashBin "kirciuoklis" ''
${curl}/bin/curl -sSL 'https://kalbu.vdu.lt/wp-admin/admin-ajax.php' -F action=text_accents -F body="$(cat)" \
| ${jq}/bin/jq -r .message \
| if [ "$1" = "--json" ]
then ${jq}/bin/jq .textParts
else ${jq}/bin/jq -r '
.textParts
| map(if has("accented") then .accented else .string end)
| join("")
'
fi
''