30 lines
787 B
Nix
30 lines
787 B
Nix
{ 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
|
|
];
|
|
|
|
}
|