1
0
Fork 0
puter/profiles/gaming/gamemode.nix
2025-05-18 01:08:10 +02:00

27 lines
482 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.profiles.gaming;
in
{
config = lib.mkIf cfg.enable {
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;
};
}