aboutsummaryrefslogtreecommitdiff
path: root/modules/home/suites/gaming/default.nix
blob: 13e98ec111ebeaf08cf3a016c97e53e55af807b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ 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;
      };
    };
  };
}