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,9 +1,22 @@
{ 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;
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 = '' default_session.command = ''
gamescope\ gamescope\
--nested-refresh 60\ --nested-refresh 60\
@ -15,4 +28,7 @@
inherit (default_session) command; 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;
}; };
}; };
} }