blob: 4f474b4988249ac3d2636a8b884fad83491dc1e8 (
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
24
25
|
{ 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;
};
hardware = {
graphics.enable32Bit = true;
pulseaudio.support32Bit = config.hardware.pulseaudio.enable;
};
})
];
}
|