Update gamescope system config

Move some things from desktop to gamescope, so gamescope doesn't
depend on other desktop specific settings (like xserver)
This commit is contained in:
Evie Litherland-Smith 2023-12-25 19:23:56 +00:00
parent d08d63959b
commit d5ff4bfe1e
2 changed files with 31 additions and 16 deletions

View file

@ -1,18 +1,34 @@
{ config, lib, pkgs, user, ... }: { pkgs, user, ... }: {
imports = [ ./default.nix ./steam.nix ];
{ environment.systemPackages = with pkgs; [ mesa ];
imports = [ ./desktop.nix ./steam.nix ]; sound.enable = true;
programs.steam.gamescopeSession.enable = true; hardware = {
services.greetd.settings = rec { pulseaudio.enable = false;
default_session.command = '' bluetooth.enable = true;
gamescope\ };
--nested-refresh 60\ services = {
--scaler auto --filter fsr --fsr-sharpness 10\ accounts-daemon.enable = true;
--hide-cursor-delay 5 --steam -- steam -gamepadui pipewire = {
''; enable = true;
initial_session = { alsa.enable = true;
inherit user; alsa.support32Bit = true;
inherit (default_session) command; pulse.enable = true;
};
greetd = {
enable = true;
settings = rec {
default_session.command = ''
gamescope\
--nested-refresh 60\
--scaler auto --filter fsr --fsr-sharpness 10\
--hide-cursor-delay 5 --steam -- steam -gamepadui
'';
initial_session = {
inherit user;
inherit (default_session) command;
};
};
}; };
}; };
programs.steam.gamescopeSession.enable = true;
} }

View file

@ -12,7 +12,6 @@
steam = { steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
gamescopeSession.enable = true;
}; };
}; };
} }