new yt-block with unkillable working

This commit is contained in:
Sebastian Moser
2024-08-15 12:11:25 +02:00
parent def6f557d5
commit a8df39483b
4 changed files with 40 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
{ pkgs
, ...
}: let
python = pkgs.python3.withPackages (ps: with ps; [pkgs.python311Packages.cryptography]);
python_script = pkgs.writeText "main-py" (builtins.readFile ./main.py);
in pkgs.writeShellApplication {
name = "yt_block_sterter";
runtimeInputs = with pkgs; [ iptables bash gnugrep ps util-linux ];
text = ''
${python}/bin/python ${python_script} starter
'';
}