add gaming

This commit is contained in:
2025-11-05 19:05:56 -06:00
parent 85c8b9ec1c
commit e329c17546
7 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{
pkgs,
lib,
config,
...
}: let
cfg = config.gaming.steam;
in {
options.gaming.steam = {
enable = lib.mkEnableOption "enable steam";
};
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
# requires setting launch option `gamescope %command%`
gamescopeSession.enable = true;
};
};
}