Files
TheaninovOS/modules/nixos/usecases/gaming.nix
2024-12-19 12:28:04 +01:00

53 lines
871 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_2_4
];
})
rpcs3
wine64
winetricks
protontricks
mangohud
gamescope
gamemode
# fix for some proton games not launching without any error message
libxcrypt
];
};
}