diff --git a/docs/antigravity.md b/docs/antigravity.md index e9314d3..bbe285c 100644 --- a/docs/antigravity.md +++ b/docs/antigravity.md @@ -94,7 +94,8 @@ Add `antigravity-nix` to your flake inputs in `flake.nix`. Ensure that you lock description = "My NixOS Configuration"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + # Official project-hosted channel tarball + nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"; # Community Flake for Google Antigravity antigravity = { diff --git a/docs/development-environments.md b/docs/development-environments.md index b84bae5..891e4ae 100644 --- a/docs/development-environments.md +++ b/docs/development-environments.md @@ -31,7 +31,9 @@ For modern Flake projects, declare your `devShell` inside your `flake.nix`: ```nix { inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + # Official project-hosted zstd tarball (faster downloads, forge-independent) + # nixpkgs-unstable is ideal for standalone dev shells + nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"; }; outputs = { self, nixpkgs }: diff --git a/flake.lock b/flake.lock index 4b86a02..3bac75b 100644 --- a/flake.lock +++ b/flake.lock @@ -250,18 +250,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1788531059, - "narHash": "sha256-hLD4l3QOGBQhkVp3mQ2lJ/YbEi99qUgKapb40KovZ88=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "801bef6abd86b91e51083066b83fb354a11fc640", - "type": "github" + "lastModified": 1789006805, + "narHash": "sha256-q+GdZ3yq4Y2LXHRK0vKTM32Hwy7RCgUgy+hjwZLI5pY=", + "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1070770.8ce4ef6cb6f8/nixexprs.tar.zst" }, "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" + "type": "tarball", + "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst" } }, "root": { diff --git a/flake.nix b/flake.nix index fe6f97e..c7c6584 100644 --- a/flake.nix +++ b/flake.nix @@ -4,8 +4,8 @@ # --- External Repositories & Flake Inputs --- # These inputs specify where Nix downloads package sets, tools, and configurations. inputs = { - # NixOS Unstable channel - used for bleeding-edge package releases - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + # NixOS Unstable channel - used for bleeding-edge package releases (official project-hosted zstd tarball) + nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"; # Home Manager - manages user-space configurations, dotfiles, and shell environments home-manager = { diff --git a/modules/system/base.nix b/modules/system/base.nix index a27953f..4bd4d5e 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -1,9 +1,12 @@ # ⚙️ Hardware-Agnostic Base System Configuration # This file contains common system configurations shared by all machines (desktop, laptop). -{ pkgs, ... }: +{ pkgs, inputs, ... }: { + # Pin system nixpkgs flake registry to the flake input to prevent ad-hoc CLI queries to GitHub + nix.registry.nixpkgs.flake = inputs.nixpkgs; + # Regional and Language settings time.timeZone = "America/Bogota"; i18n.defaultLocale = "en_US.UTF-8";