"92 2026-01-06 18:49:55 26.05.20260102.fb7944c 6.18.3"

This commit is contained in:
Larra Emily Sarah
2026-01-06 18:49:57 +01:00
parent dfd96944c1
commit 3982d9bb67
3 changed files with 49 additions and 5 deletions

42
packet-tracer.nix Normal file
View File

@@ -0,0 +1,42 @@
{
pkgs,
lib,
...
}: {
nixpkgs.config.packageOverrides = pkgs: {
ciscoPacketTracer8 = pkgs.ciscoPacketTracer8.override {
packetTracerSource = /home/sarah/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=""''
];
};
};
};
}