nixos/system/gamescope.nix

44 lines
907 B
Nix
Raw Normal View History

{ config, lib, pkgs, user ? "xenia", ... }:
let
sessionCommand = ''
gamescope\
--nested-refresh 60\
--scaler auto --filter fsr --fsr-sharpness 10\
--hide-cursor-delay 5 --steam -- steam -gamepadui
'';
in {
imports = [ ./desktop.nix ];
services = {
blueman.enable = true;
greetd = {
enable = true;
settings = {
default_session = {
inherit user;
command = sessionCommand;
};
initial_session = {
inherit user;
command = sessionCommand;
};
};
};
};
hardware = {
opengl.driSupport32Bit = true;
steam-hardware.enable = true;
};
programs = {
xwayland.enable = true;
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
};
}