flocon/modules/gaming.nix

34 lines
662 B
Nix
Raw Normal View History

2024-09-05 14:20:22 +00:00
{ 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 ];
};
}