Auto-updating Nix Flake for Google Antigravity -- zero configuration, multi-platform, version-pinned.
- 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
nix run github:jacopone/antigravity-nixAdd 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
];
}
];
};
};
}{
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
];
}
];
};
};
}{
nixpkgs.overlays = [
inputs.antigravity-nix.overlays.default
];
environment.systemPackages = with pkgs; [
google-antigravity
];
}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; }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.
antigravity # launch from terminal
antigravity /path/to/project # open a specific project# 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-nixAll releases: https://github.com/jacopone/antigravity-nix/releases
- Nix with flakes enabled
allowUnfree = true(Antigravity is proprietary software)- On
aarch64-linux, Chromium is used automatically since Google Chrome is unavailable
- Fork the repository
- Create a feature branch
- Test with
nix buildandnix flake check - Submit a pull request
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.