Request : NixOS Steam for Dummies

I feel like I’ve come a long way learning Nix over the last year. But Steam still manages to elude me.
The documentation we have leaves some helpful breadcrumbs, but an idiot-proof walkthrough of installing and running a game would be greatly appreciated. I imagine I’m not alone :slight_smile:
A free to play title like Dota or something would be good since anyone could reproduce the process for free.

1 Like

Haven’t played Dota in a while but setup was pretty straightforward a couple of years ago, so this should get you started.

This section describes all steam-related configuration I have: GitHub - rasendubi/dotfiles: My dotfiles

Put these lines into your /etc/nixos/configuration.nix file:

  environment.systemPackages = [
    pkgs.steam
  ];

  hardware.opengl.driSupport32Bit = true;
  hardware.pulseaudio.support32Bit = true;

After that, update the system and launch steam as usual. You should be able to play Dota.

Again, I haven’t tried this for a year or two, but I don’t see any reason that wouldn’t work today.

1 Like

Yup as simple as that.

Maybe we should make a programs.steam.enable automatically sets those other 2 values to true automatically?

4 Likes

Also, If you wanna try Proton, this post from Chiiruno may help out.

I’m hopeful of Lutris on NixOS to simplify Steam, adding games to steam-run, Wine, emulators etc :smiley:

https://github.com/NixOS/nixpkgs/pull/42075

I had no issue installing and running steam and games, even with proton.

I just followed the instructions in the wiki.

See my config: https://github.com/davidak/nixos-config/blob/69a516af83ec1093575a08ed363a7af13d79aee0/profiles/gaming.nix