flocon/modules/other/gaming.nix

52 lines
943 B
Nix

{
lib,
config,
pkgs,
username,
...
}: 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;
gamescopeSession.enable = true;
};
gamemode.enable = true;
coolercontrol = {
enable = true;
nvidiaSupport = true;
};
};
hardware.keyboard.qmk.enable = true;
environment.systemPackages = with pkgs; [
via
];
services.udev.packages = [pkgs.via];
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;
};
};
}