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:
17
packages/scanned.nix
Normal file
17
packages/scanned.nix
Normal 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"
|
||||
''
|
||||
Reference in New Issue
Block a user