An Agent Quota model quota timer handling script
It is packaged as a Nix flake, exposing a standalone package, a Home Manager module, and a native NixOS module to run the script periodically via systemd user services and timers so the cooldown is always maxxed
Add this flake input to your configuration:
inputs.agent-quota-timer-utils = {
url = "https://gist.github.com/Malix-Labs/663d4910dfb3eb71018b1f1c2d9bcd64";
type = "git";
inputs.nixpkgs.follows = "nixpkgs";
};Import the Home Manager module:
imports = [
inputs.agent-quota-timer-utils.homeModules.default
];
services.agent-quota-timer-utils = {
enable = true;
# agy = {
# enable = true; # optional: enable the integration (default: config.programs.antigravity-cli.enable)
# package = pkgs.antigravity-cli; # optional: package to use (default: config.programs.antigravity-cli.package)
# models = {
# internal.enable = true; # optional: enable internal model quota timer handling (default: true)
# external.enable = true; # optional: enable external model quota timer handling (default: true)
# };
# };
};Import the NixOS module:
imports = [
inputs.agent-quota-timer-utils.nixosModules.default
];
services.agent-quota-timer-utils = {
enable = true;
# agy = {
# enable = true; # optional: enable the integration (default: config.programs.antigravity-cli.enable)
# package = pkgs.antigravity-cli; # optional: package to use (default: config.programs.antigravity-cli.package)
# models = {
# internal.enable = true; # optional: enable internal model quota timer handling (default: true)
# external.enable = true; # optional: enable external model quota timer handling (default: true)
# };
# };
};If you only want the agent-quota-timer-utils script package installed in your path, but do not want to configure the systemd periodic run/timer, you can add it to your packages list:
-
Home Manager:
home.packages = [ inputs.agent-quota-timer-utils.packages.${pkgs.stdenv.hostPlatform.system}.default ];
-
NixOS:
environment.systemPackages = [ inputs.agent-quota-timer-utils.packages.${pkgs.stdenv.hostPlatform.system}.default ];
To execute the script on-demand without installing it:
nix run git+https://gist.github.com/Malix-Labs/663d4910dfb3eb71018b1f1c2d9bcd64