nixos/system/steam.nix

26 lines
539 B
Nix
Raw Normal View History

{ pkgs, username, ... }:
{
environment = {
sessionVariables.MANGOHUD = 1;
systemPackages = [ pkgs.mangohud ];
};
hardware.steam-hardware.enable = true;
programs = {
gamemode.enable = true;
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
gamescope = {
enable = true;
capSysNice = true;
};
};
home-manager.users.${username}.programs.mangohud = {
enable = true;
enableSessionWide = true;
settings.preset = 2;
};
}