Steam only starts on the first run

I am new to NixOS, but I’ve used linux extensively, sadly not for gaming.

Steam is playing up, I knew from the beginning that it is not the most straight forward process, but I didn’t expect weird unexplainable hickups. It starts fine on the first run, but after quitting, it I can’t get it to open, running it from the CLI does not wield to many information:

steam.sh[20416]: Running Steam on nixos 23.05 64-bit
steam.sh[20416]: STEAM_RUNTIME is enabled automatically
setup.sh[20494]: Steam runtime environment up-to-date!
run.sh[20507]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit status was 127
steam.sh[20416]: Steam client's requirements are satisfied

ldconfig -XNv

ldconfig: Path `/nix/store/46m4xx889wlhsdj72j38fnlyyvvvvbyb-glibc-2.37-8/lib64' given more than once
(from <builtin>:0 and <builtin>:0)
ldconfig: Can't stat /nix/store/46m4xx889wlhsdj72j38fnlyyvvvvbyb-glibc-2.37-8/libx32: No such file or directory
/nix/store/46m4xx889wlhsdj72j38fnlyyvvvvbyb-glibc-2.37-8/lib: (from <builtin>:0)
        libnss_files.so.2 -> libnss_files.so.2
        libresolv.so.2 -> libresolv.so.2
        ld-linux-x86-64.so.2 -> ld-linux-x86-64.so.2
        libBrokenLocale.so.1 -> libBrokenLocale.so.1
        libnss_db.so.2 -> libnss_db.so.2
        libm.so.6 -> libm.so.6
        libmemusage.so -> libmemusage.so
        libnsl.so.1 -> libnsl.so.1
        libpthread.so.0 -> libpthread.so.0
        libpcprofile.so -> libpcprofile.so
        libdl.so.2 -> libdl.so.2
        libmvec.so.1 -> libmvec.so.1
        libnss_dns.so.2 -> libnss_dns.so.2
        librt.so.1 -> librt.so.1
        libc_malloc_debug.so.0 -> libc_malloc_debug.so.0
        libanl.so.1 -> libanl.so.1
        libutil.so.1 -> libutil.so.1
        libnss_hesiod.so.2 -> libnss_hesiod.so.2
        libnss_compat.so.2 -> libnss_compat.so.2
        libc.so.6 -> libc.so.6
        libthread_db.so.1 -> libthread_db.so.1

I am uncertain about the GLIBC issue. Maybe that is already the issue I am facing, but I dont necessarily think so, as I dont think it is different on first start.

Is there somethign I am missing?

2 Likes

After restarting my computer and starting it from the CLI the first time, it became apparent that some part didn’t close down properly. I’ll update the post once more if I find the reason for it to not quit completely.

1 Like

Same happened to me, sometimes when I open steam it gives that message and some games wont launch, closing it and opening again fixes it.

Do you install steam with programs.steam.enable or environment.systemPackages = [ pkgs.steam ];? The former is how you’re supposed to install steam on NixOS, it solves some issues.

If that’s not it, I’d expect this is a steam bug.

I do use the programs.steam.enable to install steam.