"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

View File

@@ -10,6 +10,7 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
./packet-tracer.nix
]; ];
# Bootloader. # Bootloader.
@@ -152,7 +153,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget steam alacritty # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget steam alacritty
libva-utils libva-utils
vesktop pkgs-stable.vesktop
git git
tealdeer tealdeer
bat bat
@@ -210,7 +211,7 @@
yt-dlp yt-dlp
strawberry strawberry
gamemode gamemode
xfce.thunar thunar
alejandra alejandra
wineWowPackages.stagingFull wineWowPackages.stagingFull
winetricks winetricks
@@ -220,6 +221,7 @@
jq jq
python313Packages.ipython python313Packages.ipython
geogebra geogebra
ciscoPacketTracer8
]; ];
fonts.enableDefaultPackages = true; fonts.enableDefaultPackages = true;

6
flake.lock generated
View File

@@ -23,11 +23,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1767116409, "lastModified": 1767379071,
"narHash": "sha256-5vKw92l1GyTnjoLzEagJy5V5mDFck72LiQWZSOnSicw=", "narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cad22e7d996aea55ecab064e84834289143e44a0", "rev": "fb7944c166a3b630f177938e478f0378e64ce108",
"type": "github" "type": "github"
}, },
"original": { "original": {

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=""''
];
};
};
};
}