nixos/system/gamescope.nix
Evie Litherland-Smith 10a44cbc2d Major re-write to make things more modularised
Move collection expressions from hosts/ into services/ as importable
modules
Remove service/hostname.nix collections
Remove all imports from host/ expressions and include as modules in
flake.nix
Set sensible defaults that propagate to (I think) everything
2023-09-10 17:07:11 +01:00

44 lines
907 B
Nix

{ 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;
};
};
}