2022-04-26 19:59:55 -04:00
|
|
|
{ config, pkgs, lib, ... }:
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-04-26 19:59:55 -04:00
|
|
|
with lib;
|
|
|
|
let cfg = config.modules.gaming.steam;
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-04-26 19:59:55 -04:00
|
|
|
in {
|
|
|
|
|
2022-04-27 09:23:26 -04:00
|
|
|
options.modules.gaming.steam = { enable = mkEnableOption "Steam"; };
|
2022-04-26 19:59:55 -04:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2022-04-25 21:54:53 -04:00
|
|
|
hardware.steam-hardware.enable = true;
|
2022-04-28 22:43:50 -04:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2022-04-25 21:54:53 -04:00
|
|
|
environment.systemPackages = with pkgs; [ steam ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|