2023-09-06 20:53:20 +01:00
|
|
|
{ config, lib, pkgs, user ? "xenia", ... }:
|
2023-08-05 18:06:21 +01:00
|
|
|
let
|
2023-08-11 16:50:51 +01:00
|
|
|
sessionCommand = ''
|
|
|
|
gamescope\
|
2023-09-10 17:07:11 +01:00
|
|
|
--nested-refresh 60\
|
2023-08-11 16:50:51 +01:00
|
|
|
--scaler auto --filter fsr --fsr-sharpness 10\
|
|
|
|
--hide-cursor-delay 5 --steam -- steam -gamepadui
|
|
|
|
'';
|
|
|
|
in {
|
2023-08-05 18:06:21 +01:00
|
|
|
imports = [ ./desktop.nix ];
|
|
|
|
services = {
|
|
|
|
blueman.enable = true;
|
2023-09-10 17:07:11 +01:00
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default_session = {
|
|
|
|
inherit user;
|
|
|
|
command = sessionCommand;
|
|
|
|
};
|
|
|
|
initial_session = {
|
|
|
|
inherit user;
|
|
|
|
command = sessionCommand;
|
|
|
|
};
|
2023-09-06 20:53:20 +01:00
|
|
|
};
|
2023-08-05 18:06:21 +01:00
|
|
|
};
|
|
|
|
};
|
2023-09-10 17:07:11 +01:00
|
|
|
hardware = {
|
|
|
|
opengl.driSupport32Bit = true;
|
|
|
|
steam-hardware.enable = true;
|
|
|
|
};
|
2023-08-05 18:06:21 +01:00
|
|
|
programs = {
|
|
|
|
xwayland.enable = true;
|
|
|
|
gamescope = {
|
|
|
|
enable = true;
|
|
|
|
capSysNice = true;
|
|
|
|
};
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|