Files
TheaninovOS/modules/nixos/usecases/gaming.nix
2024-04-23 20:41:23 +02:00

53 lines
865 B
Nix

{
config,
lib,
pkgs,
username,
...
}:
with lib;
let
cfg = config.usecases.gaming;
in
{
options.usecases.gaming = {
enable = mkEnableOption "Enable gaming things";
};
config = mkIf cfg.enable {
programs.steam.enable = true;
services.udev.packages = with pkgs; [ oversteer ];
users.users.${username}.extraGroups = [
"wheel"
"input"
"games"
];
environment.systemPackages = with pkgs; [
steam
oversteer
obs-studio
(lutris.override {
extraLibraries =
pkgs: with pkgs; [
libgudev
libvdpau
libsoup
];
})
rpcs3
wine
winetricks
protontricks
mangohud
gamescope
gamemode
# fix for some proton games not launching without any error message
libxcrypt
];
};
}