summaryrefslogtreecommitdiff
path: root/unmoved-modules/home-manager/gaming.nix
blob: 3222fc2a9689235690de71c00b6d09dddc5a9452 (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
27
28
29
30
31
32
33
34
35
36
37
{ config, pkgs, lib, inputs, ... }:

{
  options = {
    gaming.enable = lib.mkEnableOption "enables gaming module";
  };

  config = lib.mkIf config.gaming.enable {
    home.packages = [
      pkgs.prismlauncher
      pkgs.cemu
      pkgs.ryubing
    ];

    programs.lutris = {
      enable = true;
      runners = {
        cemu.package = pkgs.cemu;
        ryujinx.package = pkgs.ryubing;
      };
      steamPackage = pkgs.steam;
      winePackages = with pkgs.wineWow64Packages; [
        stable
      ];
      extraPackages = with pkgs; [
        gamemode
        umu-launcher
        winetricks
        mangohud
        gamescope
      ];
      protonPackages = with pkgs; [
        proton-ge-bin
      ];
    };
  };
}