New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround for issue #44254 (Steam cannot connect to friends network) #44602
Conversation
Workaround for issue NixOS#44254 (Steam cannot connect to friends network)
pkgs/games/steam/chrootenv.nix
Outdated
# Workaround for issue #44254 (Steam cannot connect to friends network) | ||
# https://github.com/NixOS/nixpkgs/issues/44254 | ||
test -z ''${TZ+x} && | ||
new_TZ="$(readlink -f /etc/localtime | grep -o '(?<=/zoneinfo/).*$' -P)" && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -P
argument to grep
could go just after grep
like grep -P -o '...'
, that would likely make reading the code easier (as one would know that they are reading a PCRE regex before actually reading it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the advice. I'll do that.
Makes reading the code easier, as one would know that they are reading a PCRE regex before actually reading it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
I think this is ready for merge :)
If somebody needs this to be backported, feel free to open another PR for it (with a cherry-pick -xe) |
Motivation for this change
When /etc/localtime is a valid symlink but doesn't point directly to a zoneinfo file, Steam has trouble connecting to friends network. I've reported this upstream, maybe they'll fix it. But for now, there's this workaround.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)