32 lines
645 B
Nix
32 lines
645 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"steam"
|
|
"steam-unwrapped"
|
|
"steam-run"
|
|
"steam-original"
|
|
"osu-lazer"
|
|
];
|
|
programs.steam = {
|
|
enable = true;
|
|
# extest.enable = true;
|
|
# extraCompatPackages = with pkgs; [
|
|
# proton-ge-bin
|
|
# ];
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
gamescopeSession = {
|
|
enable = true;
|
|
args = ["-r" "144" "-O" "DP-1" "--rt"];
|
|
};
|
|
};
|
|
programs.gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
programs.gamemode.enable = true;
|
|
}
|