add gamescope for steam

This commit is contained in:
ulic-youthlic 2025-03-19 15:14:33 +08:00
parent 7b599a1d50
commit a3ed17ede2
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -1,4 +1,9 @@
{ lib, config, ... }: {
pkgs,
lib,
config,
...
}:
let let
cfg = config.youthlic.programs.steam; cfg = config.youthlic.programs.steam;
in in
@ -10,6 +15,9 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
hardware.graphics.enable32Bit = true; hardware.graphics.enable32Bit = true;
environment.systemPackages = with pkgs; [
gamescope
];
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play