Enable esync.
This commit is contained in:
parent
f5b20ebee0
commit
d8e7a83fe3
@ -8,8 +8,21 @@
|
||||
crony.gaming.enable = lib.mkEnableOption "enable gaming related stuff, like steam and gamemode";
|
||||
};
|
||||
config = lib.mkIf config.crony.gaming.enable {
|
||||
# Install steam
|
||||
programs.steam.enable = true;
|
||||
# Enable gamescope
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
# Install gamemode
|
||||
programs.gamemode.enable = true;
|
||||
# Setup esync
|
||||
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
|
||||
security.pam.loginLimits = [
|
||||
{
|
||||
domain = "*";
|
||||
type = "hard";
|
||||
item = "nofile";
|
||||
value = "1048576";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user