summaryrefslogtreecommitdiff
path: root/system/gaming/default.nix
blob: ac04c6fc04834d0b737b85e20a105e82e8bdcfbf (plain)
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
26
{
  config,
  lib,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.gaming;
in {
  imports = [
    ./steam.nix
  ];

  config = mkIf cfg.enable {
    programs.wine = {
      enable = true;
      package = pkgs.wineWow64Packages.staging;
      binfmt = true;
      ntsync = true;
    };

    environment.systemPackages = with pkgs; [
      winetricks
    ];
  };
}