nixos/system/steam.nix

29 lines
581 B
Nix
Raw Normal View History

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