Prismlauncher: runtime error: missing GLIBCXX version in libstdc++.so.6 (possibly due to incompatible runtime environment)

Prism Launcher Fails to Launch Minecraft Instances Due to GLIBCXX Version Mismatch

I’m encountering an issue when trying to launch Minecraft instances through Prism Launcher on NixOS. The error log indicates that the system is missing a compatible version of libstdc++.so.6 with GLIBCXX_3.4.29, despite having gcc12 installed and explicitly included. I’ve tried overriding the build environment and setting runtime paths, but the issue persists.

The problem appears to affect systems using Prism Launcher with certain Java versions or modded instances. Below are the steps I’ve followed to reproduce the issue:

Steps to Reproduce:

  1. Start with NixOS 24.05.

  2. Upgrade the system flake to nixos-24.11.

  3. Run the following command in /etc/nixos:

    doas nixos-rebuild switch --flake .
    
  4. Reboot the system:

    systemctl reboot
    
  5. In home.nix, add Prism Launcher:

    (pkgs.prismlauncher.override {
      jdks = [ pkgs.temurin-bin-21 pkgs.temurin-bin-17 pkgs.temurin-bin-8 ];
    })
    
  6. Rebuild your home-manager configuration:

    home-manager switch
    
  7. Open Prism Launcher (e.g., from Plasma Task Manager).

  8. Create and configure a Minecraft instance (e.g., Fabric or Vanilla).

  9. Attempt to launch the instance.

  10. The game fails to start, and the following error appears in the log:

    libstdc++.so.6: version 'GLIBCXX_3.4.29' not found
    

System Details:

  • Prism Launcher Version: 9.4 (nixpkgs)
  • Java Path: /nix/store/898b2kbbk5aj67vl302m7sqqvxv93ngc-temurin-bin-21.0.4/bin/java
  • Java Version: 21.0.4
  • Architecture: 64 (amd64)
  • GPU: AMD Ryzen 7 6800HS with Radeon Graphics
  • Kernel Driver: amdgpu
  • OpenGL Version: 4.6 (Mesa 24.2.8)

Log Excerpt:

libstdc++.so.6: version 'GLIBCXX_3.4.29' not found

Minecraft instances should launch successfully without any runtime library errors, and Java libraries should resolve dependencies from the correct GCC runtime environment automatically.

Has anyone encountered a similar issue or found a solution? Any advice on resolving this GLIBCXX mismatch would be appreciated!

here is the minecraft log file:

Prism Launcher version: 9.4 (nixpkgs)


Launched instance in online mode

login.microsoftonline.com resolves to:
    [20.190.159.75, 20.190.159.4, 40.126.31.129, 40.126.31.128, 20.190.159.68, 20.190.159.73, 20.190.159.130, 20.190.159.2, 2603:1027:1:c8::2, 2603:1027:1:d0::5, 2603:1027:1:c8::1, 2603:1026:3000:d0::9, 2603:1026:3000:d8::1, 2603:1026:3000:d0::b, 2603:1026:3000:d0::, 2603:1026:3000:d8::2]


session.minecraft.net resolves to:
    [104.212.67.194, 2620:1ec:29:1::45]


textures.minecraft.net resolves to:
    [13.107.253.45, 2620:1ec:29:1::45]


api.mojang.com resolves to:
    [13.107.246.45, 2620:1ec:bdf::45]


Minecraft folder is:
/home/user/.local/share/PrismLauncher/instances/1.21.5/minecraft


Java path is:
/nix/store/898b2kbbk5aj67vl302m7sqqvxv93ngc-temurin-bin-21.0.4/bin/java


Java is version 21.0.4, using 64 (amd64) architecture, from Eclipse Adoptium.


AMD Ryzen 7 6800HS with Radeon Graphics
Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6650 XT / 6700S / 6800S] (rev c2)

Subsystem: ASUSTeK Computer Inc. Device 1dec

Kernel driver in use: amdgpu

Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c8)

Subsystem: ASUSTeK Computer Inc. Device 1dec

Kernel driver in use: amdgpu

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.8

Main Class:
  net.fabricmc.loader.impl.launch.knot.KnotClient

Native path:
  /home/user/.local/share/PrismLauncher/instances/1.21.5/natives

Traits:
traits FirstThreadOnMacOS
traits XR:Initial
traits feature:is_quick_play_multiplayer
traits feature:is_quick_play_singleplayer

Using system OpenAL.

Libraries:
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-linux/3.3.3/lwjgl-freetype-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-linux/3.3.3/lwjgl-glfw-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-linux/3.3.3/lwjgl-jemalloc-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-linux/3.3.3/lwjgl-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-linux/3.3.3/lwjgl-openal-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-linux/3.3.3/lwjgl-opengl-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-linux/3.3.3/lwjgl-stb-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-linux/3.3.3/lwjgl-tinyfd-natives-linux-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3.jar
  /home/user/.local/share/PrismLauncher/libraries/com/fasterxml/jackson/core/jackson-annotations/2.13.4/jackson-annotations-2.13.4.jar
  /home/user/.local/share/PrismLauncher/libraries/com/fasterxml/jackson/core/jackson-core/2.13.4/jackson-core-2.13.4.jar
  /home/user/.local/share/PrismLauncher/libraries/com/fasterxml/jackson/core/jackson-databind/2.13.4.2/jackson-databind-2.13.4.2.jar
  /home/user/.local/share/PrismLauncher/libraries/com/github/oshi/oshi-core/6.6.5/oshi-core-6.6.5.jar
  /home/user/.local/share/PrismLauncher/libraries/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar
  /home/user/.local/share/PrismLauncher/libraries/com/google/code/gson/gson/2.11.0/gson-2.11.0.jar
  /home/user/.local/share/PrismLauncher/libraries/com/google/guava/failureaccess/1.0.2/failureaccess-1.0.2.jar
  /home/user/.local/share/PrismLauncher/libraries/com/google/guava/guava/33.3.1-jre/guava-33.3.1-jre.jar
  /home/user/.local/share/PrismLauncher/libraries/com/ibm/icu/icu4j/76.1/icu4j-76.1.jar
  /home/user/.local/share/PrismLauncher/libraries/com/microsoft/azure/msal4j/1.17.2/msal4j-1.17.2.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/authlib/6.0.58/authlib-6.0.58.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/brigadier/1.3.10/brigadier-1.3.10.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/datafixerupper/8.0.16/datafixerupper-8.0.16.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/jtracy/1.0.29/jtracy-1.0.29.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/jtracy-natives-linux/1.0.29/jtracy-natives-linux-1.0.29.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/logging/1.5.10/logging-1.5.10.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/text2speech/1.18.11/text2speech-1.18.11.jar
  /home/user/.local/share/PrismLauncher/libraries/com/nimbusds/content-type/2.3/content-type-2.3.jar
  /home/user/.local/share/PrismLauncher/libraries/com/nimbusds/lang-tag/1.7/lang-tag-1.7.jar
  /home/user/.local/share/PrismLauncher/libraries/com/nimbusds/nimbus-jose-jwt/9.40/nimbus-jose-jwt-9.40.jar
  /home/user/.local/share/PrismLauncher/libraries/com/nimbusds/oauth2-oidc-sdk/11.18/oauth2-oidc-sdk-11.18.jar
  /home/user/.local/share/PrismLauncher/libraries/commons-codec/commons-codec/1.17.1/commons-codec-1.17.1.jar
  /home/user/.local/share/PrismLauncher/libraries/commons-io/commons-io/2.17.0/commons-io-2.17.0.jar
  /home/user/.local/share/PrismLauncher/libraries/commons-logging/commons-logging/1.3.4/commons-logging-1.3.4.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-buffer/4.1.118.Final/netty-buffer-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-codec/4.1.118.Final/netty-codec-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-common/4.1.118.Final/netty-common-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-handler/4.1.118.Final/netty-handler-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-resolver/4.1.118.Final/netty-resolver-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-transport-classes-epoll/4.1.118.Final/netty-transport-classes-epoll-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-transport-native-epoll/4.1.118.Final/netty-transport-native-epoll-4.1.118.Final-linux-aarch_64.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-transport-native-epoll/4.1.118.Final/netty-transport-native-epoll-4.1.118.Final-linux-x86_64.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-transport-native-unix-common/4.1.118.Final/netty-transport-native-unix-common-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/io/netty/netty-transport/4.1.118.Final/netty-transport-4.1.118.Final.jar
  /home/user/.local/share/PrismLauncher/libraries/it/unimi/dsi/fastutil/8.5.15/fastutil-8.5.15.jar
  /home/user/.local/share/PrismLauncher/libraries/net/java/dev/jna/jna-platform/5.15.0/jna-platform-5.15.0.jar
  /home/user/.local/share/PrismLauncher/libraries/net/java/dev/jna/jna/5.15.0/jna-5.15.0.jar
  /home/user/.local/share/PrismLauncher/libraries/net/minidev/accessors-smart/2.5.1/accessors-smart-2.5.1.jar
  /home/user/.local/share/PrismLauncher/libraries/net/minidev/json-smart/2.5.1/json-smart-2.5.1.jar
  /home/user/.local/share/PrismLauncher/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/commons/commons-compress/1.27.1/commons-compress-1.27.1.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/commons/commons-lang3/3.17.0/commons-lang3-3.17.0.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/logging/log4j/log4j-api/2.24.1/log4j-api-2.24.1.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/logging/log4j/log4j-core/2.24.1/log4j-core-2.24.1.jar
  /home/user/.local/share/PrismLauncher/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.24.1/log4j-slf4j2-impl-2.24.1.jar
  /home/user/.local/share/PrismLauncher/libraries/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar
  /home/user/.local/share/PrismLauncher/libraries/org/joml/joml/1.10.8/joml-1.10.8.jar
  /home/user/.local/share/PrismLauncher/libraries/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar
  /home/user/.local/share/PrismLauncher/libraries/org/ow2/asm/asm/9.8/asm-9.8.jar
  /home/user/.local/share/PrismLauncher/libraries/org/slf4j/slf4j-api/2.0.16/slf4j-api-2.0.16.jar
  /home/user/.local/share/PrismLauncher/libraries/net/fabricmc/intermediary/1.21.5/intermediary-1.21.5.jar
  /home/user/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-analysis/9.8/asm-analysis-9.8.jar
  /home/user/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-commons/9.8/asm-commons-9.8.jar
  /home/user/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-tree/9.8/asm-tree-9.8.jar
  /home/user/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-util/9.8/asm-util-9.8.jar
  /home/user/.local/share/PrismLauncher/libraries/net/fabricmc/sponge-mixin/0.15.5+mixin.0.8.7/sponge-mixin-0.15.5+mixin.0.8.7.jar
  /home/user/.local/share/PrismLauncher/libraries/net/fabricmc/fabric-loader/0.16.14/fabric-loader-0.16.14.jar
  /home/user/.local/share/PrismLauncher/libraries/com/mojang/minecraft/1.21.5/minecraft-1.21.5-client.jar

Native libraries:

Mods:
  [✔] appleskin-fabric-mc1.21.5-3.0.6
  [✔] authme-fabric-9.0.1+1.21.5
  [✔] BadOptimizations-2.2.2-1.21.2-21.5
  [✔] badpackets-fabric-0.8.2
  [✔] bettercommandblockui-0.5.3-1.21.5
  [✔] BetterF3-14.0.0-Fabric-1.21.5
  [✔] betterstats-3.13.9+fabric-1.21.5
  [✔] bobby-5.2.7+mc1.21.5
  [✔] c2me-fabric-mc1.21.5-0.3.4+alpha.0.1
  [✔] cloth-config-18.0.145-fabric
  [✔] controlify-2.1.2+1.21.5-fabric
  [✔] Controlling-fabric-1.21.5-23.0.2
  [✔] cwb-fabric-3.0.0+mc1.21.5
  [✔] dark-loading-screen-1.6.16
  [✔] DistantHorizons-neoforge-fabric-2.3.2-b-1.21.5
  [✔] entity_model_features_fabric_1.21.5-2.4.3
  [✔] entity_sound_features_fabric_1.21.5-0.6
  [✔] entity_texture_features_fabric_1.21.5-6.2.13
  [✔] entityculling-fabric-1.7.4-mc1.21.5
  [✔] fabric-api-0.123.0+1.21.5
  [✔] fabric-language-kotlin-1.13.2+kotlin.2.1.20
  [✔] fast-ip-ping-v1.0.5-mc1.21.1-fabric
  [✔] fastquit-3.0.0+1.21.4
  [✔] ferritecore-8.0.0-fabric
  [✔] ImmediatelyFast-Fabric-1.9.3+1.21.5
  [✔] Ksyxis-1.3.3
  [✔] lambdynamiclights-4.2.6+1.21.5
  [✔] language-reload-1.7.3+1.21.5
  [✔] lithium-fabric-0.16.2+mc1.21.5
  [✔] modelfix-1.21.5-1.12-fabric
  [✔] modmenu-14.0.0-rc.2
  [✔] morechathistory-1.3.1
  [✔] moreculling-fabric-1.21.5-1.3.1
  [✔] MouseTweaks-fabric-mc1.21.3-2.27
  [✔] NoChatReports-FABRIC-1.21.5-v2.12.0
  [✔] noisium-fabric-2.6.0+mc1.21.5
  [✔] optigui-2.3.0-beta.7+1.21.5
  [✔] placeholder-api-2.6.3+1.21.5
  [✔] reeses-sodium-options-fabric-1.8.3+mc1.21.4
  [✔] Resourcify (1.21.5-fabric)-1.7.1
  [✔] Searchables-fabric-1.21.5-1.0.2
  [✔] shulkerboxtooltip-fabric-5.2.5+1.21.5
  [✔] sodium-extra-fabric-0.6.3+mc1.21.5
  [✔] sodium-fabric-0.6.13+mc1.21.5
  [✔] spark-1.10.128-fabric
  [✔] status-effect-bars-1.0.8
  [✔] tcdcommons-3.12.7+fabric-1.21.5
  [✔] threadtweak-fabric-0.1.7+mc1.21.5
  [✔] vmp-fabric-mc1.21.5-0.2.0+beta.7.198-all
  [✔] voicechat-fabric-1.21.5-2.5.30
  [✔] WI-Zoom-1.6-MC1.21.5
  [✔] wthit-fabric-15.0.1
  [✔] yet_another_config_lib_v3-3.6.6+1.21.5-fabric

Params:
  --username  --version 1.21.5 --gameDir /home/user/.local/share/PrismLauncher/instances/1.21.5/minecraft --assetsDir /home/user/.local/share/PrismLauncher/assets --assetIndex 24 --uuid  --accessToken  --userType  --versionType release

Window size: 854 x 480

Launcher: standard

Java Arguments:
[-Dorg.lwjgl.openal.libname=/nix/store/jkki9izciz1zmbl261a701pn25shjxhc-openal-soft-1.23.1/lib/libopenal.so, -Xms512m, -Xmx16384m, -Duser.language=en]


Minecraft process ID: 7059


/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash: /nix/store/w47x7y9xjgq7n3171ckg722ddwf2pi3v-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/6hq6fs1z2w60jg4ajr7n0c98g20qqv16-spdlog-1.15.1/lib/libspdlog.so.1.15)
Process exited with code 1.
Clipboard copy at: 14 May 2025 12:26:09 +0200

and this is my log for ‘nix-shell -p nix-info --run “nix-info -m”’

 - system: `"x86_64-linux"`
 - host os: `Linux 6.14.6-cachyos, NixOS, 24.11 (Vicuna), 24.11.20250511.a39ed32`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.14`
error:
       … while calling the 'concatStringsSep' builtin
         at «string»:1:1:
            1| builtins.concatStringsSep ", "
             | ^
            2|                              (map (ch: ch.name)

       … while calling the 'map' builtin
         at «string»:2:31:
            1| builtins.concatStringsSep ", "
            2|                              (map (ch: ch.name)
             |                               ^
            3|                                (import "/nix/var/nix/profiles/per-user/root/channels/manifest.nix"))

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: syntax error, unexpected end of file
       at /nix/store/dp2zzsw5iwwxi6sb7r1nlgl0cmjhjjd7-env-manifest.nix:1:1:
1 Like

As you are using HM standalone, and either without flakes or in a different location, did you also update the nixpkgs input for your home configuration and the HM input?

I did all of this and sitll same issue

nix flake show
path:/etc/nixos?lastModified=1747227545&narHash=sha256-aY1eInm7ziUvtvi7OYFlb3N%2BZZSWb9e6xLFTOuww4u4%3D
├───homeConfigurations: unknown
└───nixosConfigurations
    └───nixos: NixOS configuration
nix flake update
/e/nixos 1.7s ❱
doas nix build .#homeConfigurations.user.activationPackage
/e/nixos 5.7s ❱
home-manager switch --flake .
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating installPackages
replacing old 'home-manager-path'
installing 'home-manager-path'
Activating linkGeneration
Cleaning up orphan links from /home/user
No change so reusing latest profile generation 146
Creating home file links in /home/user
Activating onFilesChange
Activating reloadSystemd

There are 175 unread and relevant news items.
Read them by running the command "home-manager news".

/e/nixos 10s ❱
home-manager generations
2025-05-14 14:59 : id 146 -> /nix/store/mhd80fkir208ngmvv7l3vdl1x3jyyi2m-home-manager-generation
/e/nixos ❱

not sure if this is the correct way though.

this is my flake.nix:

# flake.nix
{
  description = "My first Flake!";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
    chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
    nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
    #stylix.url = "github:danth/stylix";
    home-manager = {
      url = "github:nix-community/home-manager/release-24.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nixos-hardware.url = "github:NixOS/nixos-hardware/master";
    nix-gaming.url = "github:fufexan/nix-gaming";
    #suyu = {
     # url = "git+https://git.suyu.dev/suyu/nix-flake";
     # inputs.nixpkgs.follows = "nixpkgs";
    #};
    #nix-software-center.url = "github:snowfallorg/nix-software-center";
  };

  outputs = {self, nixpkgs, ...}@inputs: {
    # Set up for NixOS
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      specialArgs = {inherit inputs;};
      system = "x86_64-linux";
      modules = [
        ./configuration.nix
        #inputs.stylix.nixosModules.stylix
        inputs.nixos-hardware.nixosModules.asus-zephyrus-ga402x-amdgpu
        inputs.chaotic.nixosModules.default
        inputs.nix-flatpak.nixosModules.nix-flatpak
        inputs.nix-gaming.nixosModules.platformOptimizations
      ];
    };

    # Set up for Home Manager
    homeConfigurations.user = inputs.home-manager.lib.homeManagerConfiguration {
      pkgs = import nixpkgs {
        system = "x86_64-linux";
      };

      extraSpecialArgs = {inherit inputs;};

      modules = [
        ./home.nix
        inputs.chaotic.homeManagerModules.default
        #inputs.nix-gaming.homeManagerModules.platformOptimizations
      ];
    };
  };
}

Why are you using --flake . here but not in the OP?

Also, from what I understand in the README of the chaotyc repo, you are not supposed to use the default modules with stable channels.

Whether or not changes something is something I do not know.

Also the way you are setting up pkgs for HM is problematic, and might disable important functionaility of the nixpkgs.* option hirarchy, please use pkgs = nixpkgs.legacyPackages.x86_64-linux; inistead.

This are more generic comments though and I doubt that those affect your current problem.

I now think, that prism did something in your ~/.local/share that is incompatible with the new system and needs to be rebuilt.

Please backup your ~/.local/share/PrismLauncher and try again. Your problem will very likely fixed by that. It might be that you have to reconfigure prims after that.

To avoid that, it might work to copy back from the backup, except for the libraries folder, which is mentioned as seemingly problematic in the error.

Please take my advice here with a grain of salt, as I have no clue what the correct spelling of prismlauncher nor minecraft are, despite how to use either…

I always use --flake, I forgot to put that detail in OP, I will make the changes to HM, and try rebuilding.

I updated my flake.nix to this:

cat /etc/nixos/flake.nix
{
  description = "My NixOS Flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
    chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
    nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
    home-manager = {
      url = "github:nix-community/home-manager/release-24.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nixos-hardware.url = "github:NixOS/nixos-hardware/master";
    nix-gaming.url = "github:fufexan/nix-gaming";
  };

  outputs = { self, nixpkgs, chaotic, home-manager, nix-flatpak, nixos-hardware, nix-gaming, ... }@inputs: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [
        ./configuration.nix
        nixos-hardware.nixosModules.asus-zephyrus-ga402x-amdgpu
        chaotic.nixosModules.default
        nix-flatpak.nixosModules.nix-flatpak
        nix-gaming.nixosModules.platformOptimizations
      ];
    };

    homeConfigurations.user = home-manager.lib.homeManagerConfiguration {
      pkgs = nixpkgs.legacyPackages.x86_64-linux;
      extraSpecialArgs = { inherit inputs; };
      modules = [
        ./home.nix
        chaotic.homeManagerModules.default
      ];
    };
  };
}

And then I did like you said backup ~/.local/share/PrismLauncher into ~/.local/share/PrismLauncher.back and made a new instance, that seemed to have worked wonders.
Thank you for the fix, and also the teaching, now I know more about how to use nix well.

1 Like