nixos/system/steam.nix

24 lines
535 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
2023-09-16 17:58:43 +01:00
{
environment.systemPackages = with pkgs; [ prismlauncher ];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "steam" "steam-original" "steam-run" ];
2023-09-16 17:58:43 +01:00
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;
};
};
}