From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/games/default.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/games/default.nix (limited to 'modules/games/default.nix') diff --git a/modules/games/default.nix b/modules/games/default.nix new file mode 100644 index 0000000..dea9d3c --- /dev/null +++ b/modules/games/default.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: +with lib; +let + cfg = config.nixfiles.modules.games; +in +{ + imports = attrValues (modulesIn ./.); + + options.nixfiles.modules.games.enable32BitSupport = mkEnableOption "support for games"; + + config = mkIf cfg.enable32BitSupport { + services = { + jack.alsa.support32Bit = config.services.jack.alsa.enable; + + pipewire.alsa.support32Bit = config.services.pipewire.alsa.enable; + }; + + hardware = { + opengl = mkIf config.hardware.opengl.enable { + extraPackages32 = config.hardware.opengl.extraPackages; + driSupport32Bit = config.hardware.opengl.driSupport; + }; + + pulseaudio.support32Bit = config.hardware.pulseaudio.enable; + }; + }; +} -- cgit v1.2.3