sane-scripts: port sane-vpn-down to nix-shell

This commit is contained in:
Colin 2023-06-07 07:23:17 +00:00
parent 05cf5e376a
commit ff1aece1ed
2 changed files with 7 additions and 1 deletions

View File

@ -281,6 +281,11 @@ let
src = ./src;
pkgs = [ "rsync" "sane-scripts.mount-servo" ];
};
vpn-down = static-nix-shell.mkBash {
pname = "sane-vpn-down";
src = ./src;
pkgs = [ "coreutils-full" "gnugrep" "gnused" "sane-scripts.ip-check" "systemd" ];
};
};
in
symlinkJoin {

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils-full -p gnugrep -p gnused -p sane-scripts.ip-check -p systemd
# first arg should be the region, e.g. `us` or `ukr`