mio-ops/profiles/steam.nix

20 lines
447 B
Nix
Raw Permalink Normal View History

2024-03-05 01:48:01 +00:00
# Steam configuration for NixOS
{
config,
lib,
pkgs,
...
}: {
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
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-run"
];
}