{ pkgs, lib, ... }: { nixpkgs.config.packageOverrides = pkgs: { ciscoPacketTracer8 = pkgs.ciscoPacketTracer8.override { packetTracerSource = ../resources/CiscoPacketTracer822_amd64_signed.deb; }; }; nixpkgs.config.permittedInsecurePackages = [ "ciscoPacketTracer8-8.2.2" ]; # Packet tracer log in can be subverted if there is no internet connection # so use firejail to isolate packet tracer into its own network namespace # when running programs.firejail = { enable = true; wrappedBinaries = { packettracer8 = { executable = lib.getExe pkgs.ciscoPacketTracer8; # Will still want a .desktop entry as the package is not directly added desktop = "${pkgs.ciscoPacketTracer8}/share/applications/cisco-pt8.desktop.desktop"; extraArgs = [ # This should make it run in isolated netns, preventing internet access "--net=none" # firejail is only needed for network isolation so no futher profile is needed "--noprofile" # Packet tracer doesn't play nice with dark QT themes so this # should unset the theme. Uncomment if you have this issue. ''--env=QT_STYLE_OVERRIDE=""'' ]; }; }; }; }