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, ... }:
{
imports = [ ./desktop.nix ./steam.nix ];
programs.steam.gamescopeSession.enable = true;
services.greetd.settings = rec {
{ 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\
@ -15,4 +28,7 @@
inherit (default_session) command;
};
};
};
};
programs.steam.gamescopeSession.enable = true;
}

View file

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