Compare commits
2 Commits
af72005772
...
75295e2f46
Author | SHA1 | Date | |
---|---|---|---|
75295e2f46 | |||
c55fbf4fae |
@ -90,7 +90,7 @@
|
|||||||
users.users.crony = {
|
users.users.crony = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Crony";
|
description = "Crony";
|
||||||
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "libvirtd"];
|
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
@ -13,7 +14,20 @@
|
|||||||
# Enable gamescope
|
# Enable gamescope
|
||||||
programs.steam.gamescopeSession.enable = true;
|
programs.steam.gamescopeSession.enable = true;
|
||||||
# Install gamemode
|
# Install gamemode
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode = {
|
||||||
|
enable = true;
|
||||||
|
enableRenice = true;
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
softrealtime = "on";
|
||||||
|
renice = 10;
|
||||||
|
};
|
||||||
|
custom = {
|
||||||
|
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||||
|
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
# Setup esync
|
# Setup esync
|
||||||
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
|
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
|
||||||
security.pam.loginLimits = [
|
security.pam.loginLimits = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user