mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
54 lines
918 B
Nix
54 lines
918 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
|
|
];
|
|
})
|
|
rpcs3
|
|
bottles
|
|
wineWowPackages.stagingFull
|
|
wineWow64Packages.stagingFull
|
|
winetricks
|
|
protontricks
|
|
mangohud
|
|
gamescope
|
|
gamemode
|
|
# fix for some proton games not launching without any error message
|
|
libxcrypt
|
|
];
|
|
};
|
|
}
|