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:
Padreug 2026-06-28 06:48:37 +02:00
commit 095f2ccf29
8 changed files with 449 additions and 0 deletions

33
modules/packs/gaming.nix Normal file
View 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
]
);
};
}