gamer improvements
This commit is contained in:
parent
b0418eb56f
commit
4b500953fd
3 changed files with 75 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue