2022-01-14 03:37:20 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.sconfig.gaming;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.sconfig.gaming.enable = lib.mkEnableOption "Enable Gaming";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable
|
|
|
|
{
|
2022-07-08 03:08:04 +00:00
|
|
|
|
2022-01-14 03:37:20 +00:00
|
|
|
programs.steam.enable = true;
|
2022-07-08 03:08:04 +00:00
|
|
|
|
2022-02-20 02:47:07 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
obs-studio
|
|
|
|
];
|
2022-07-08 03:08:04 +00:00
|
|
|
|
|
|
|
boot.extraModulePackages =
|
|
|
|
lib.optional
|
|
|
|
(lib.versionOlder config.boot.kernelPackages.kernel.version "5.16")
|
|
|
|
(config.boot.kernelPackages.hid-nintendo);
|
|
|
|
|
2022-01-14 03:37:20 +00:00
|
|
|
};
|
|
|
|
}
|