Gaming: restructure role

This commit is contained in:
Toast 2023-10-03 00:36:14 +02:00
parent 190044ee8f
commit ca7dd48db3
6 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./steam.nix
./mangohud.nix
./rpcs3.nix
];
}

View file

@ -0,0 +1,16 @@
{ config, ... }:
{
home-manager.users.toast = { config, ... }:
{
programs.mangohud = {
enable = true;
# This only works for Vulkan, openGL programs still need the mangohud wrapper
enableSessionWide = true;
settings = {
preset = 4;
no_display = true;
};
};
};
}

View file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ rpcs3 ];
# Increase the memory lock limit
security.pam.loginLimits = [{
domain = "*";
item = "memlock";
type = "-"; # Applies to both hard and soft limits
value = "unlimited";
}];
}

View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
programs.steam = {
enable = true;
# Doubt that I'll use it, but I'll enable it anyways
remotePlay.openFirewall = true;
};
# Some linux native games (rise of the tomb raider) use alsa for sound
services.pipewire.alsa.enable = if config.services.pipewire.pulse.enable == true then true else false;
}