{pkgs, ...}: {
  hardware.steam-hardware.enable = true;

  # Old Source engine game, be sure to run older Source games with LD_PRELOAD="/usr/lib32/libtcmalloc_minimal.so:$LD_PRELOAD" %command%
  nixpkgs.overlays = [
    (_final: prev: {
      steam = prev.steam.override ({extraLibraries ? _pkgs': [], ...}: {
        extraLibraries = pkgs':
          (extraLibraries pkgs')
          ++ [
            pkgs'.gperftools
          ];
      });
    })
  ];

  environment.systemPackages = with pkgs; [
    steam
  ];
}
