aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs/umu-launcher/default.nix
blob: 1e886e23ac4c2c7778d0685681e3c21c6d990492 (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
{
  config,
  pkgs,
  lib,
  ...
}:

# umu-launcher - This is a unified launcher for Windows games on Linux
{
  options.programs.umu-launcher = {
    enable = lib.mkEnableOption "Enables umu-launcher.";
    package = lib.mkOption {
      type = lib.types.package;
      default = pkgs.symlinkJoin {
        name = "umu-launcher-bundle";
        paths = with pkgs; [
          umu-launcher
          winetricks
        ];
      };
      description = "Bundle of UMU Launcher and winetricks.";
    };
  };

  config = lib.mkIf config.programs.umu-launcher.enable {
    home.packages = [ config.programs.umu-launcher.package ];
  };
}