38 lines
623 B
Nix
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
|
|
];
|
|
};
|
|
}
|