!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

611 Members
Gaming things, my hands are typing words.164 Servers

Load older messages


SenderMessageTime
23 Jun 2026
@user.on:matrix.orgUser joined the room.07:07:26
@simplymao:matrix.orgEnok Larsson joined the room.09:58:52
24 Jun 2026
@makuru:catgirl.cloudMakuru Whats wrong with gamescope?
/bin/sh: line 1: gamescope: command not found
17:47:01
@makuru:catgirl.cloudMakuru
where gamescope
/nix/store/71d1mqa318yqsfq1wmyp6x5iaz6pix0c-gamescope-3.16.24/bin/gamescope
/run/current-system/sw/bin/gamescope
17:48:52
@skiltz:matrix.orgSkiltZ joined the room.18:38:00
@marienz:matrix.orgmarienz

Normal steam client or beta or SteamRT3 steam client?

I noticed steam (possibly SteamRT3 only?) started running games with $PATH cleaned up (ran into a similar error with my own custom wrapper). I added my wrapper to the steam FHSenv to get around it but don't recall if there's a nice way of doing that. Didn't realize gamescope wasn't in there already.

I'll file a bug this evening (not at my computer right now).

23:31:11
25 Jun 2026
@makuru:catgirl.cloudMakuru SteamRT3 02:27:19
@makuru:catgirl.cloudMakuru Did this also fix the problem with gamemode? 02:28:18
@marienz:matrix.orgmarienzIt'll affect anything not included in the steam FHSenv. Workaround would be to specify the full path (I think /run/current-system/sw/bin is still available inside the container, just not on $PATH)02:56:47
@atemu12:matrix.orgAtemuPerhaps slightly OT but does anyone know of a way to set env vars only for the games that Steam runs but not for Steam itself? I currently use the wrapper but have run into an issue with an env var that causes trouble with Steam but that I do want games to get passed.07:56:03
@neobrain:matrix.orgneobrainUse the launch options08:21:58
@neobrain:matrix.orgneobrain(In the game properties dialog)08:22:26
@neobrain:matrix.orgneobrain MYENV=somevalue %command% 08:23:03
@marienz:matrix.orgmarienzI don't think there's a way around having to do that for each game08:23:03
@marienz:matrix.orgmarienz(no default launch options for all games that don't have per-game options set)08:23:49
@marienz:matrix.orgmarienzSo it's a little annoying (but does work)08:24:08
@magic_rb:matrix.redalder.orgmagic_rb

I wish steam had a better api for this:

  1. List games
  2. Set launch options

It would make things easier for a lot of linux folks

09:34:09
@srestegosaurio:tchncs.desrestegosaurio (on tchncs.de) I've once saw a project which let you do something like that as a nixos module. 10:01:04
@srestegosaurio:tchncs.desrestegosaurio (on tchncs.de) It seemed hacky. 10:01:13
@marienz:matrix.orgmarienzI'd be curious how they managed it (I can't really think of a way short of replacing the /bin/sh Steam sees with something that checks whether it's being invoked by Steam)10:03:47
@magic_rb:matrix.redalder.orgmagic_rbThey edit steams vdf database, which means steam cant running when you do it10:38:17
@magic_rb:matrix.redalder.orgmagic_rbVery impractical10:38:32
@marienz:matrix.orgmarienz ah, I see. https://github.com/ValveSoftware/steam-for-linux/issues/3453 looks like the relevant upstream feature request (and someone in there mentions sed-ing localconfig.vdf, presumably same approach you're describing) 10:40:39
@magic_rb:matrix.redalder.orgmagic_rbYeah its truly a shame there isnt a api for this :( next year when i go to xdc ill convince one of the valve contractors to push the idea within valve. Cant hurt to try10:42:00
@marienz:matrix.orgmarienz Looks like I missed that nixpkgs+NixOS already had a hook for this. Assuming you're using the NixOS steam module, try adding programs.steam.extraPackages = pkgs: [ pkgs.gamescope ] (...it's even the example in https://search.nixos.org/options?channel=26.05&query=steam.extraPackages#show=option%253Aprograms.steam.extraPackages ) 11:14:54
@marienz:matrix.orgmarienz err, sorry, that should've been just programs.steam.extraPackages = [pkgs.gamescope] 11:19:10
@marienz:matrix.orgmarienz * err, sorry, that should've been just programs.steam.extraPackages = [ pkgs.gamescope ] 11:19:25
@makuru:catgirl.cloudMakuru awawawwawa 11:59:30
@ranidspace:4d2.orgranidspace (they/it/xe)awawawawawa13:20:48
@marienz:matrix.orgmarienz?13:22:09

Show newer messages


Back to Room ListRoom Version: 10