22 lines
379 B
Nix
22 lines
379 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.gamemode = {
|
|
enable = true;
|
|
settings = {
|
|
general = {
|
|
renice = 10;
|
|
};
|
|
custom = {
|
|
start = "${lib.getExe pkgs.libnotify} 'GameMode started'";
|
|
end = "${lib.getExe pkgs.libnotify} 'GameMode stopped'";
|
|
};
|
|
};
|
|
};
|
|
|
|
users.groups.gamemode.members = config.users.normalUsers;
|
|
}
|