Skip to content

Auto-updating Nix package for Google Antigravity agentic IDE. Updates 3x/week. FHS environment with overlay support for NixOS/Home Manager.

License

Notifications You must be signed in to change notification settings

jacopone/antigravity-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

antigravity-nix

Auto-updating Nix Flake for Google Antigravity -- zero configuration, multi-platform, version-pinned.

Update Antigravity Flake Check NixOS

What This Provides

  • FHS environment wrapping the upstream binary with all required libraries
  • Automated updates via GitHub Actions (3x/week), with hash verification and build testing
  • Multi-platform support for x86_64-linux, aarch64-linux, x86_64-darwin, and aarch64-darwin
  • Version pinning through tagged releases for reproducible builds

Quick Start

nix run github:jacopone/antigravity-nix

Installation

NixOS Configuration

Add to your flake.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    antigravity-nix = {
      url = "github:jacopone/antigravity-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, antigravity-nix, ... }: {
    nixosConfigurations.your-hostname = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        {
          environment.systemPackages = [
            antigravity-nix.packages.x86_64-linux.default
          ];
        }
      ];
    };
  };
}

Home Manager

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager";
    antigravity-nix = {
      url = "github:jacopone/antigravity-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, home-manager, antigravity-nix, ... }: {
    homeConfigurations.your-user = home-manager.lib.homeManagerConfiguration {
      pkgs = nixpkgs.legacyPackages.x86_64-linux;
      modules = [
        {
          home.packages = [
            antigravity-nix.packages.x86_64-linux.default
          ];
        }
      ];
    };
  };
}

Overlay

{
  nixpkgs.overlays = [
    inputs.antigravity-nix.overlays.default
  ];

  environment.systemPackages = with pkgs; [
    google-antigravity
  ];
}

Package Variants

Two packaging strategies are available:

Variant Strategy Trade-off
default / google-antigravity buildFHSEnv + bubblewrap Sandboxed, but inherits no_new_privileges restrictions
google-antigravity-no-fhs autoPatchelfHook No sandbox, full system integration

The default uses buildFHSEnv to create an isolated FHS environment via bubblewrap. This is the most compatible approach, but the sandbox sets the kernel's no_new_privileges flag, which prevents privilege escalation (sudo, pkexec) and can cause issues with nested namespaces.

The no-fhs variant uses autoPatchelfHook to patch ELF binaries directly, the same approach used by VS Code in nixpkgs. It runs natively on NixOS without sandboxing.

# Use the no-fhs variant
home.packages = [
  antigravity-nix.packages.${system}.google-antigravity-no-fhs
];

Or via override:

google-antigravity.override { useFHS = false; }

Chrome Profile Isolation

By default, Antigravity uses your system Chrome profile (~/.config/google-chrome), giving it access to your installed extensions. To run with an isolated Chrome profile instead (e.g., when testing untrusted apps):

google-antigravity.override { useSystemChromeProfile = false; }

This omits the --user-data-dir and --profile-directory flags, letting Chrome manage its own profile independently. Works with both FHS and non-FHS variants.

Usage

antigravity                  # launch from terminal
antigravity /path/to/project # open a specific project

Version Pinning

# Follow latest (recommended)
inputs.antigravity-nix.url = "github:jacopone/antigravity-nix";

# Pin to a specific release
inputs.antigravity-nix.url = "github:jacopone/antigravity-nix/v1.11.2-6251250307170304";

Update to the latest version:

nix flake update antigravity-nix

All releases: https://github.com/jacopone/antigravity-nix/releases

Requirements

  • Nix with flakes enabled
  • allowUnfree = true (Antigravity is proprietary software)
  • On aarch64-linux, Chromium is used automatically since Google Chrome is unavailable

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Test with nix build and nix flake check
  4. Submit a pull request

License

MIT License -- see LICENSE for details.

Google Antigravity is proprietary software by Google LLC. This is an unofficial package, not affiliated with or endorsed by Google.