"100 2026-01-27 16:08:19 26.05.20260123.c5296fd 6.18.7"

This commit is contained in:
Larra Emily Sarah
2026-01-27 17:03:29 +01:00
parent 67e095d6e7
commit d936f72cb9
6 changed files with 67 additions and 27 deletions

42
modules/packet-tracer.nix Normal file
View File

@@ -0,0 +1,42 @@
{
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=""''
];
};
};
};
}