mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
packettracer: block net
This commit is contained in:
parent
dabedb6631
commit
9f6ee02d35
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, alsaLib
|
, alsaLib
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
, buildFHSUserEnv
|
, buildFHSUserEnvBubblewrap
|
||||||
, dbus
|
, dbus
|
||||||
, dpkg
|
, dpkg
|
||||||
, expat
|
, expat
|
||||||
|
@ -20,6 +20,9 @@
|
||||||
, nspr
|
, nspr
|
||||||
, nss
|
, nss
|
||||||
, xlibs
|
, xlibs
|
||||||
|
|
||||||
|
, blockInternet ? true
|
||||||
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.hostPlatform.system == "x86_64-linux";
|
assert stdenv.hostPlatform.system == "x86_64-linux";
|
||||||
|
@ -95,8 +98,9 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
buildFHSUserEnv {
|
buildFHSUserEnvBubblewrap {
|
||||||
name = "packettracer";
|
name = "packettracer";
|
||||||
|
unshareNet = blockInternet;
|
||||||
runScript = "${ptFiles}/bin/packettracer";
|
runScript = "${ptFiles}/bin/packettracer";
|
||||||
targetPkgs = pkgs: [ libudev0-shim ];
|
targetPkgs = pkgs: [ libudev0-shim ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue