feat(flake): switch nixpkgs to official channel tarball and pin registry
- Switch nixpkgs input to official zstd tarball from channels.nixos.org - Update flake.lock with verified tarball release - Pin nix.registry.nixpkgs.flake to inputs.nixpkgs in modules/system/base.nix - Update development environment and antigravity documentation examples
This commit is contained in:
1 parent
e6d817417a
commit
3120028147
5 files changed
+18
-15
No files matched your search
+2
-1
@@ -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 = {
|
||||
|
||||
@@ -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 }:
|
||||
|
||||
Generated
+7
-10
@@ -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": {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user