Gaming
{
config,
lib,
pkgs,
...
}: let
cfg = config.dr460nixed.gaming;
in {
options.dr460nixed.gaming = with lib; {
enable =
mkOption
{
default = false;
type = types.bool;
description = mdDoc ''
Whether this device is used for gaming.
'';
};
};
config = lib.mkIf cfg.enable {
# Gamemode
programs.gamemode.enable = true;
# Enable Steam
programs.steam = {
enable = true;
extraCompatPackages = with pkgs; [proton-ge-custom];
};
};
}