gamer improvements

This commit is contained in:
notgne2 2022-05-14 08:58:40 -07:00
parent b0418eb56f
commit 4b500953fd
No known key found for this signature in database
GPG key ID: 5CE0A245A2DAC84A
3 changed files with 75 additions and 14 deletions

View file

@ -106,15 +106,52 @@ in
# Needed for lots of controller stuff
hardware.uinput.enable = lib.mkDefault true;
# proton esync
# Allows realtime stuff, useful for games, audio etc
services.udev.extraRules = ''
KERNEL=="rtc0", GROUP="users"
KERNEL=="hpet", GROUP="users"
'';
# Allows more open files, useful for sync software and some other stuff
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
security.pam.loginLimits = [
# Allows more open files, useful for sync software and some other stuff
{
domain = "*";
type = "soft";
item = "nofile";
value = "1048576";
}
{
domain = "*";
type = "hard";
item = "nofile";
value = "1048576";
}
# Allows more locked memory, useful for emulators, some games, etc
{
domain = "@users";
type = "-";
item = "memlock";
value = "unlimited";
}
# Allows greater realtime priority, useful for audio, emulators, games, etc
{
domain = "@users";
type = "-";
item = "rtprio";
value = "90";
}
# Allow becoming less nice, useful for audio, emulators, games, etc
{
domain = "@users";
type = "-";
item = "nice";
value = "-10";
}
];
# the user should have some basic permissions lol