sane-scripts: port sane-vpn-down to nix-shell
This commit is contained in:
parent
05cf5e376a
commit
ff1aece1ed
|
@ -281,6 +281,11 @@ let
|
||||||
src = ./src;
|
src = ./src;
|
||||||
pkgs = [ "rsync" "sane-scripts.mount-servo" ];
|
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
|
in
|
||||||
symlinkJoin {
|
symlinkJoin {
|
||||||
|
|
|
@ -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`
|
# first arg should be the region, e.g. `us` or `ukr`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user