blob: b70b94b46c320174f95e537ac95dd20a2a5c4452 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, lib, ... }:
with lib;
let
cfg = config.nixfiles.modules.games;
in
{
imports = attrValues (modulesIn ./.);
options.nixfiles.modules.games.enable32BitSupport = mkEnableOption "support for games";
config = mkMerge [
{ hardware.graphics.enable = true; }
(mkIf cfg.enable32BitSupport {
services = {
jack.alsa.support32Bit = config.services.jack.alsa.enable;
pipewire.alsa.support32Bit = config.services.pipewire.alsa.enable;
pulseaudio.support32Bit = config.services.pulseaudio.enable;
};
hardware.graphics.enable32Bit = true;
})
];
}
|