1
0

pkgs/print-afra: Add script for printing pdf in AfRA

This commit is contained in:
clerie 2024-03-19 17:51:59 +01:00
parent 0fb89ef74d
commit 9bc4ba3b77
4 changed files with 15 additions and 0 deletions

View File

@ -123,6 +123,7 @@
nixfiles-generate-backup-secrets
nixfiles-generate-config
nixfiles-update-ssh-host-keys
print-afra
update-from-hydra
uptimestatus;
});

View File

@ -26,6 +26,8 @@
okular
chromium-incognito
print-afra
];
# Wireshark

View File

@ -10,6 +10,7 @@ final: prev: {
nixfiles-generate-backup-secrets = final.callPackage ./nixfiles/nixfiles-generate-backup-secrets.nix {};
nixfiles-generate-config = final.callPackage ./nixfiles/nixfiles-generate-config.nix {};
nixfiles-update-ssh-host-keys = final.callPackage ./nixfiles/nixfiles-update-ssh-host-keys.nix {};
print-afra = final.callPackage ./print-afra {};
update-from-hydra = final.callPackage ./update-from-hydra {};
uptimestatus = final.python3.pkgs.callPackage ./uptimestatus {};
}

View File

@ -0,0 +1,11 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "print-afra";
text = ''
cat "$@" | nc -N 172.23.42.215 9100
'';
runtimeInputs = with pkgs; [
netcat
];
}