39 lines
898 B
Nix
39 lines
898 B
Nix
{ config, lib, pkgs, user ? "xenia", ... }:
|
|
let
|
|
sessionCommand = ''
|
|
gamescope\
|
|
--output-width 3840 --output-height 2160 --framerate-limit 60\
|
|
--nested-width 1920 --nested-height 1080 --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;
|
|
greetd.settings = {
|
|
default_session = {
|
|
inherit user;
|
|
command = sessionCommand;
|
|
};
|
|
initial_session = {
|
|
inherit user;
|
|
command = sessionCommand;
|
|
};
|
|
};
|
|
};
|
|
programs = {
|
|
xwayland.enable = true;
|
|
gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
gamescopeSession.enable = true;
|
|
};
|
|
};
|
|
}
|