blob: 06a9a9a62e61593009e0231fcf45f4629d969a2b [file] [log] [blame]
Skyler Grey4fe40b42024-03-04 18:39:57 +00001{ config, lib, pkgs, ... }:
2{
3 options = {
4 chimera.games.steam.enable = lib.mkEnableOption "Enable Steam";
5 };
6
7 config = {
8 programs.steam = lib.mkIf config.chimera.games.steam.enable {
9 enable = true;
10 remotePlay.openFirewall = true;
11
12 package = pkgs.steam.override
13 {
14 extraLibraries = pkgs: [ config.hardware.opengl.package ] ++ config.hardware.opengl.extraPackages;
15 };
16 };
17 hardware.steam-hardware.enable = true;
18
19 environment.systemPackages = [
20 pkgs.steam-run
21 ];
22 };
23}