flocon/modules/gaming.nix

36 lines
603 B
Nix
Raw Normal View History

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