33 lines
753 B
Nix
33 lines
753 B
Nix
# Gaming pack — Steam, Lutris, Wine, performance tools.
|
|
# Migrated from packages.nix `gaming` category + the steam block in core.nix.
|
|
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.omni.packs.gaming;
|
|
in
|
|
{
|
|
options.omni.packs.gaming.enable =
|
|
lib.mkEnableOption "Gaming pack (Steam, Lutris, Wine, performance tools)";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
};
|
|
|
|
environment.systemPackages = config.omni.lib.filterPackages (
|
|
with pkgs;
|
|
[
|
|
steam
|
|
lutris
|
|
wine
|
|
winetricks
|
|
protonup-rs
|
|
mangohud
|
|
gamemode
|
|
discord
|
|
obs-studio
|
|
]
|
|
);
|
|
};
|
|
}
|