about summary refs log tree commit diff stats
path: root/modules/nixos/sils/steam.nix
blob: 3c834a6f5e3edc5169bbd4990be9abb0dc561626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  cfg = config.sils.steam;
in {
  options.sils.steam.enable = lib.mkEnableOption "Steam";
  config = lib.mkIf cfg.enable {
    nixpkgs.config.allowUnfreePredicate = pkg:
      builtins.elem (lib.getName pkg) [
        "steam"
        "steam-unwrapped"
      ];
    programs.steam = {
      enable = true;
    };
  };
}