Gaming: restructure role
This commit is contained in:
parent
190044ee8f
commit
ca7dd48db3
6 changed files with 16 additions and 3 deletions
9
roles/gaming/programs/default.nix
Executable file
9
roles/gaming/programs/default.nix
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./steam.nix
|
||||
./mangohud.nix
|
||||
./rpcs3.nix
|
||||
];
|
||||
}
|
||||
16
roles/gaming/programs/mangohud.nix
Normal file
16
roles/gaming/programs/mangohud.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
13
roles/gaming/programs/rpcs3.nix
Normal file
13
roles/gaming/programs/rpcs3.nix
Normal 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";
|
||||
}];
|
||||
}
|
||||
11
roles/gaming/programs/steam.nix
Normal file
11
roles/gaming/programs/steam.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue