From 6926a7a9a69c8fe5d3eeef22616d46909c09ffd1 Mon Sep 17 00:00:00 2001 From: Roman Lubij Date: Wed, 4 Mar 2026 17:12:12 +0100 Subject: [PATCH] Add theme override for pt Dark theme messes up the UI Also update pt --- common/modules/home/desktop-files.nix | 39 +++++++++------------------ common/modules/packages.nix | 4 +-- 2 files changed, 15 insertions(+), 28 deletions(-) diff --git a/common/modules/home/desktop-files.nix b/common/modules/home/desktop-files.nix index 0117c00..19a6a47 100644 --- a/common/modules/home/desktop-files.nix +++ b/common/modules/home/desktop-files.nix @@ -5,32 +5,6 @@ }: { - /* - xdg.desktopEntries = { - "clion" = { - name = "CLion (Nix Shell)"; - genericName = "C/C++ IDE from JetBrains"; - exec = "nix develop ${config.xdg.configHome}/nix-shells/cpp -c clion %f"; - icon = "clion"; - type = "Application"; - terminal = false; - categories = [ - "Development" - "IDE" - ]; - settings = { - StartupWMClass = "jetbrains-clion"; - }; - mimeType = [ - "text/x-c++src" - "text/x-c++hdr" - "text/x-csrc" - "text/x-chdr" - ]; - }; - }; - */ - xdg.dataFile."applications/clion.desktop".text = '' [Desktop Entry] Type=Application @@ -43,4 +17,17 @@ StartupWMClass=jetbrains-clion MimeType=text/x-c++src;text/x-c++hdr;text/x-csrc;text/x-chdr; ''; + + xdg.dataFile."applications/cisco-packet-tracer-9.desktop".text = '' + [Desktop Entry] + StartupWMClass=PacketTracer + Name=Cisco Packet Tracer 9.0.0 + Type=Application + Categories=Education; + Exec=env QT_STYLE_OVERRIDE=adwaita packettracer9 %f + Icon=cisco-packet-tracer-9 + Terminal=false + StartupNotify=true + MimeType=application/x-pkt;application/x-pka;application/x-pkz;application/x-pks;application/x-pksz; + ''; } diff --git a/common/modules/packages.nix b/common/modules/packages.nix index 22bdcbf..e2107c9 100644 --- a/common/modules/packages.nix +++ b/common/modules/packages.nix @@ -14,7 +14,7 @@ allowUnfree = true; permittedInsecurePackages = [ "ventoy-gtk3-1.1.10" - "cisco-packet-tracer-8.2.2" + "cisco-packet-tracer_9" ]; }; overlays = [ @@ -117,7 +117,7 @@ ntfs3g nufraw-thumbnailer obsidian - ciscoPacketTracer8 + cisco-packet-tracer_9 papirus-icon-theme pbzip2 pciutils