Files
cnix/modules/nixos/programs/steam/default.nix
2025-11-02 10:07:07 +01:00

38 lines
623 B
Nix

{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.nixos.programs.steam;
in
{
options = {
nixos.programs.steam.enable = mkEnableOption "Enables steam";
};
config = mkIf cfg.enable {
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
};
gamescope = {
enable = true;
capSysNice = true;
args = [
"--rt"
"--expose-wayland"
];
};
};
environment.systemPackages = with pkgs; [
protonup-ng
wine
winetricks
wine-wayland
];
};
}