flocon/modules/other/gaming.nix

53 lines
943 B
Nix
Raw Normal View History

2024-09-24 13:09:36 +00:00
{
lib,
config,
pkgs,
2024-09-25 12:28:33 +00:00
username,
2024-09-24 13:09:36 +00:00
...
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;
};
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-25 12:28:33 +00:00
home-manager.users.${username} = {
home.packages = with pkgs; [
protonup-qt
bottles
lutris
path-of-building
r2modman
# steamtinkerlaunch dependencies
unzip
xdotool
xorg.xwininfo
yad
];
programs.mangohud.enable = true;
};
2024-09-05 14:20:22 +00:00
};
}