sane-bt-show: port to nix-shell

This commit is contained in:
Colin 2023-05-19 19:52:44 +00:00
parent c662936490
commit ae2e4931f3
2 changed files with 7 additions and 2 deletions

View File

@ -49,7 +49,6 @@ let
sops sops
sudo sudo
systemd systemd
transmission
util-linux util-linux
which which
]; ];
@ -124,6 +123,11 @@ let
src = ./src; src = ./src;
pyPkgs = [ "natsort" "requests" ]; pyPkgs = [ "natsort" "requests" ];
}; };
bt-show = static-nix-shell.mkBash {
pname = "sane-bt-show";
src = ./src;
pkgs = [ "transmission" ];
};
date-math = static-nix-shell.mkPython3Bin { date-math = static-nix-shell.mkPython3Bin {
pname = "sane-date-math"; pname = "sane-date-math";
src = ./src; src = ./src;

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env nix-shell
#!nix-shell -i bash -p transmission
endpoint=https://bt.uninsane.org/transmission/rpc endpoint=https://bt.uninsane.org/transmission/rpc
PASS=$(sudo cat /run/secrets/transmission_passwd) PASS=$(sudo cat /run/secrets/transmission_passwd)