feat(packs): opt-in package packs — media/office/dev/gaming/containers/compat
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
e0f2a3951f
commit
095f2ccf29
8 changed files with 449 additions and 0 deletions
33
modules/packs/gaming.nix
Normal file
33
modules/packs/gaming.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# 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
|
||||
]
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue