Skyler Grey | 4fe40b4 | 2024-03-04 18:39:57 +0000 | [diff] [blame] | 1 | { 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 | { |
Samuel Shuert | 70698fd | 2024-08-23 10:59:43 -0400 | [diff] [blame] | 14 | extraLibraries = pkgs: [ config.hardware.graphics.package ] ++ config.hardware.graphics.extraPackages; |
Skyler Grey | 4fe40b4 | 2024-03-04 18:39:57 +0000 | [diff] [blame] | 15 | }; |
| 16 | }; |
| 17 | hardware.steam-hardware.enable = true; |
| 18 | |
| 19 | environment.systemPackages = [ |
| 20 | pkgs.steam-run |
| 21 | ]; |
| 22 | }; |
| 23 | } |