nixos/system/steam.nix

29 lines
581 B
Nix

{ lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ prismlauncher discord ];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"discord"
];
hardware = {
opengl.driSupport32Bit = true;
steam-hardware.enable = true;
};
programs = {
xwayland.enable = true;
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
};
}