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, ... }:
{
imports = [ ./desktop.nix ./steam.nix ];
programs.steam.gamescopeSession.enable = true;
services.greetd.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;
{ pkgs, user, ... }: {
imports = [ ./default.nix ./steam.nix ];
environment.systemPackages = with pkgs; [ mesa ];
sound.enable = true;
hardware = {
pulseaudio.enable = false;
bluetooth.enable = true;
};
services = {
accounts-daemon.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
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 = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
};
}