From 08d29d4cac99cdc4d81c97ccee21deecd109c82e Mon Sep 17 00:00:00 2001 From: Malix - Alix Brunet Date: Sat, 23 May 2026 17:27:07 +0200 Subject: [PATCH] gamescope: feature option `enableWsi` --- nixos/modules/programs/gamescope.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/programs/gamescope.nix b/nixos/modules/programs/gamescope.nix index 910a75354ea6..d83486e5054f 100644 --- a/nixos/modules/programs/gamescope.nix +++ b/nixos/modules/programs/gamescope.nix @@ -26,6 +26,8 @@ in package = lib.mkPackageOption pkgs "gamescope" { }; + enableWsi = lib.mkEnableOption "gamescope-wsi, the Vulkan WSI layer, alongside gamescope"; + capSysNice = lib.mkOption { type = lib.types.bool; default = false; @@ -76,6 +78,11 @@ in }; environment.systemPackages = lib.mkIf (!cfg.capSysNice) [ gamescope ]; + + hardware.graphics = lib.optionalAttrs cfg.enableWsi { + extraPackages = with pkgs; [ gamescope-wsi ]; + extraPackages32 = with pkgs; [ pkgsi686Linux.gamescope-wsi ]; + }; }; meta.maintainers = [ ];