new yt-block with unkillable working
This commit is contained in:
12
scripts/yt-block/starter.nix
Normal file
12
scripts/yt-block/starter.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user