37 lines
666 B
Nix
37 lines
666 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.modules.gaming;
|
|
in
|
|
{
|
|
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 ];
|
|
};
|
|
}
|