13
am I on nixos-unstable? (sh.itjust.works)

new to nixos. I have found a flake.nix file on the internet which I used to build my system. in that flake file I found the following line:

{
  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 = [
	./configuration.nix
	./hardware-configuration.nix
        {
          environment.systemPackages = [
            antigravity-nix.packages.x86_64-linux.default # Base App
            antigravity-nix.packages.x86_64-linux.google-antigravity-ide # IDE
            antigravity-nix.packages.x86_64-linux.google-antigravity-cli # CLI
          ];
        }
      ];
    };
  };
}

if I understood correctly the flake also has outputs variable in the attribute set and it's returning nixpkgs whose url is set to the unstable. does it mean I am running unstable version of nixos?

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[-] InnerScientist@lemmy.world 2 points 12 hours ago

Yes you're following nixpkgs unstable, the exact version can be seen in your flake.lock file (or updated using nix flake update)

this post was submitted on 14 Sep 2026
13 points (100.0% liked)

Nix / NixOS

2876 readers
13 users here now

Main links

Videos

founded 3 years ago
MODERATORS