aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/nixos/apps/steam/default.nix
blob: b9baebf2ced65d899f41e934504565a61828bc55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ options, config, lib, pkgs, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.apps.steam;
in {
  options.${namespace}.apps.steam = with types; {
    enable = mkEnableOption "steam";
  };

  config = mkIf cfg.enable {
    nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
      "steam"
      "steam-unwrapped"
    ];
    
    programs.steam.enable = true;
  };
}