1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 19:41: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/scanned.nix Normal file
View File

@@ -0,0 +1,17 @@
# ref https://tex.stackexchange.com/a/502542
{
writers,
imagemagick,
}:
writers.writeDashBin "scanned" ''
[ $# -eq 1 -a -f "$1" -a -r "$1" ] || exit 1
${imagemagick}/bin/convert \
-density 150 \
"$1" \
-rotate 0.5 \
-attenuate 0.25 \
+noise Multiplicative \
-colorspace Gray \
"scanned-$1"
''