aboutsummaryrefslogtreecommitdiff
path: root/modules/home/suites/gaming/default.nix
blob: 656aaefb28414ea9ce89076f5e193eeac50fb69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ options, config, lib, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.suites.gaming;
  desktop = config.${namespace}.desktop;
in {
  options.${namespace}.suites.gaming = with types; {
    enable = mkEnableOption "gaming";
  };

  config = mkIf (cfg.enable && desktop.enable) {
    cxl = {
      apps = {
        steam.enable = true;
        prismlauncher.enable = true;
        lutris.enable = true;
        hytale.enable = true;
      };
    };
  };
}