2023-12-25 19:23:56 +00:00
|
|
|
{ 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;
|
|
|
|
};
|
|
|
|
};
|
2023-08-05 18:06:21 +01:00
|
|
|
};
|
|
|
|
};
|
2023-12-25 19:23:56 +00:00
|
|
|
programs.steam.gamescopeSession.enable = true;
|
2023-08-05 18:06:21 +01:00
|
|
|
}
|