blob: 17090bb9c2bdffc36e7fd993abd381925787faae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, lib, ... }:
let
cfg = config.nixfiles.modules.games;
in
{
imports = lib.modulesIn ./. |> lib.attrValues;
options.nixfiles.modules.games.enable32BitSupport = lib.mkEnableOption "support for games";
config = lib.mkMerge [
{ hardware.graphics.enable = true; }
(lib.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;
})
];
}
|