config/profiles/desktop/steam.nix

30 lines
787 B
Nix
Raw Normal View History

2023-03-11 03:39:06 +01:00
{ config, pkgs, lib, ... }:
{
programs.steam.enable = true;
programs.steam.remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
programs.steam.dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-runtime"
];
#programs.java.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
withPrimus = config.hardware.nvidia.modesetting.enable;
#withJava = config.programs.java.enable;
extraPkgs = pkgs: with pkgs; [
libgdiplus
];
};
};
environment.systemPackages = with pkgs; [
steam-tui
steamcmd
];
}