2024-09-24 13:09:36 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
2024-09-05 14:20:22 +00:00
|
|
|
cfg = config.modules.gaming;
|
|
|
|
in
|
2024-09-24 13:09:36 +00:00
|
|
|
{
|
2024-09-05 14:20:22 +00:00
|
|
|
options = {
|
|
|
|
modules.gaming = {
|
|
|
|
enable = lib.mkEnableOption "Enable the gaming module";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
package = with pkgs; steam.override { extraPkgs = pkgs: [ attr ]; };
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gamemode.enable = true;
|
|
|
|
|
|
|
|
programs.coolercontrol = {
|
|
|
|
enable = true;
|
|
|
|
nvidiaSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.keyboard.qmk.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
via
|
|
|
|
];
|
|
|
|
services.udev.packages = [ pkgs.via ];
|
|
|
|
};
|
|
|
|
}
|