2023-08-22 19:39:11 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-07-28 15:39:50 +03:00
|
|
|
|
2023-08-22 19:39:11 +03:00
|
|
|
let
|
|
|
|
cfg = config.my.roles.gaming;
|
|
|
|
in {
|
|
|
|
options.my.roles.gaming.enable = lib.mkEnableOption "Enable wine & steam";
|
2023-08-23 09:38:48 +03:00
|
|
|
config = lib.mkIf (cfg.enable) (lib.mkMerge {
|
2023-08-22 19:39:11 +03:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
services.pipewire.alsa.support32Bit = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wineWowPackages.stable
|
|
|
|
wine
|
|
|
|
(wine.override { wineBuild = "wine64"; })
|
|
|
|
wineWowPackages.staging
|
|
|
|
winetricks
|
|
|
|
wineWowPackages.waylandFull
|
|
|
|
];
|
2023-08-23 09:38:48 +03:00
|
|
|
}
|
|
|
|
# Enable steam only on x86_64 (since we have hosts with ARM, but I don't think I will enable my.roles.gaming on ARM system soon)
|
|
|
|
(lib.mkIf(pkgs.stdenv.isx86_64) {programs.steam.enable = true;}))
|
2023-07-17 06:44:29 +03:00
|
|
|
}
|