diff --git a/flake.nix b/flake.nix index aa46d87..ac69e14 100644 --- a/flake.nix +++ b/flake.nix @@ -123,6 +123,7 @@ nixfiles-generate-backup-secrets nixfiles-generate-config nixfiles-update-ssh-host-keys + print-afra update-from-hydra uptimestatus; }); diff --git a/hosts/krypton/programs.nix b/hosts/krypton/programs.nix index 2284729..601c4fc 100644 --- a/hosts/krypton/programs.nix +++ b/hosts/krypton/programs.nix @@ -26,6 +26,8 @@ okular chromium-incognito + + print-afra ]; # Wireshark diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix index 644a48c..982781b 100644 --- a/pkgs/overlay.nix +++ b/pkgs/overlay.nix @@ -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 {}; } diff --git a/pkgs/print-afra/default.nix b/pkgs/print-afra/default.nix new file mode 100644 index 0000000..f2c3a0b --- /dev/null +++ b/pkgs/print-afra/default.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: + +pkgs.writeShellApplication { + name = "print-afra"; + text = '' + cat "$@" | nc -N 172.23.42.215 9100 + ''; + runtimeInputs = with pkgs; [ + netcat + ]; +}