Skip to content

Commit

Permalink
Remove some duplicate steam-specific options and add libGL dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Sep 23, 2023
1 parent 9e9661c commit fe853aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 12 additions & 10 deletions nixos/roles/gaming/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@ in
};

config = mkIf cfg.enable {
# open ports for steam stream and some games
networking.firewall.allowedTCPPorts = [ 27036 27037 ] ++ (range 27015 27030);
networking.firewall.allowedUDPPorts = [ 4380 27036 ] ++ (range 27000 27031);

programs.steam.enable = true;
programs.steam = {
enable = true;
dedicatedServer.openFirewall = true;
remotePlay.openFirewall = true;
};

# Gaming 32bit
#hardware.opengl.driSupport32Bit = true;
#hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
#hardware.pulseaudio.support32Bit = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
libGL
];
};
};

# Xbox controller
hardware.xpadneo.enable = true;
#boot.extraModprobeConfig = '' options bluetooth disable_ertm=1 '';
};
}
2 changes: 0 additions & 2 deletions nixos/roles/steambox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ in
firefox
];

hardware.opengl.driSupport32Bit = true;

# Enable the KDE Desktop Environment.
services.xserver = {
enable = true;
Expand Down

0 comments on commit fe853aa

Please sign in to comment.