gamescope: feature option enableWsi

This commit is contained in:
Malix - Alix Brunet
2026-05-27 19:33:33 +02:00
parent 10f937f0f5
commit 08d29d4cac
+7
View File
@@ -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 = [ ];