mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +01:00
feat: fix secrets permissions, move ./packages to flake outputs
This commit is contained in:
16
packages/qrpaste.nix
Normal file
16
packages/qrpaste.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
writers,
|
||||
mktemp,
|
||||
qrencode,
|
||||
xclip,
|
||||
nsxiv,
|
||||
}:
|
||||
writers.writeDashBin "qrpaste" ''
|
||||
file="$(${mktemp}/bin/mktemp --tmpdir)"
|
||||
trap clean EXIT
|
||||
clean() {
|
||||
rm "$file"
|
||||
}
|
||||
${qrencode}/bin/qrencode "$(${xclip}/bin/xclip -selection clipboard -out)" -o "$file"
|
||||
${nsxiv}/bin/nsxiv "$file"
|
||||
''
|
||||
Reference in New Issue
Block a user