Files
cnix/modules/nixos/programs/steam/default.nix

38 lines
620 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
wine
winetricks
wine-wayland
];
};
}