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";
|
description = "My NixOS Configuration";
|
||||||
|
|
||||||
inputs = {
|
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
|
# Community Flake for Google Antigravity
|
||||||
antigravity = {
|
antigravity = {
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ For modern Flake projects, declare your `devShell` inside your `flake.nix`:
|
|||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs = {
|
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 }:
|
outputs = { self, nixpkgs }:
|
||||||
|
|||||||
Generated
+7
-10
@@ -250,18 +250,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788531059,
|
"lastModified": 1789006805,
|
||||||
"narHash": "sha256-hLD4l3QOGBQhkVp3mQ2lJ/YbEi99qUgKapb40KovZ88=",
|
"narHash": "sha256-q+GdZ3yq4Y2LXHRK0vKTM32Hwy7RCgUgy+hjwZLI5pY=",
|
||||||
"owner": "nixos",
|
"rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe",
|
||||||
"repo": "nixpkgs",
|
"type": "tarball",
|
||||||
"rev": "801bef6abd86b91e51083066b83fb354a11fc640",
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1070770.8ce4ef6cb6f8/nixexprs.tar.zst"
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"type": "tarball",
|
||||||
"ref": "nixos-unstable",
|
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# --- External Repositories & Flake Inputs ---
|
# --- External Repositories & Flake Inputs ---
|
||||||
# These inputs specify where Nix downloads package sets, tools, and configurations.
|
# These inputs specify where Nix downloads package sets, tools, and configurations.
|
||||||
inputs = {
|
inputs = {
|
||||||
# NixOS Unstable channel - used for bleeding-edge package releases
|
# NixOS Unstable channel - used for bleeding-edge package releases (official project-hosted zstd tarball)
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
|
||||||
|
|
||||||
# Home Manager - manages user-space configurations, dotfiles, and shell environments
|
# Home Manager - manages user-space configurations, dotfiles, and shell environments
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
# ⚙️ Hardware-Agnostic Base System Configuration
|
# ⚙️ Hardware-Agnostic Base System Configuration
|
||||||
# This file contains common system configurations shared by all machines (desktop, laptop).
|
# 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
|
# Regional and Language settings
|
||||||
time.timeZone = "America/Bogota";
|
time.timeZone = "America/Bogota";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|||||||
Reference in new issue
Block a user