Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 5s
Document legacy desktop derivation retirement, SOPS hierarchical secrets restructuring, and provide execution walkthrough guides for NixOS fleet management.
2.9 KiB
2.9 KiB
type, project, tags
| type | project | tags | ||||
|---|---|---|---|---|---|---|
| guide | nixos |
|
Walkthrough: Transitioning to Official channels.nixos.org Channel Tarballs
Overview
We created an isolated branch feat/channel-tarball-nixpkgs to transition nixpkgs flake inputs from GitHub (github:nixos/nixpkgs/nixos-unstable) to the official project-hosted, zstd-compressed channel tarballs (https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst).
This change provides:
- ~20–33% smaller download sizes via Zstandard (
.tar.zst) compression. - Forge independence from GitHub for the core Nixpkgs repository.
- Immunity from GitHub API rate-limiting.
- System flake registry pinning (
nix.registry.nixpkgs.flake = inputs.nixpkgs;) so ad-hoc CLI commands (nix run nixpkgs#...) reuse the evaluated channel snapshot without external GitHub lookups.
Changes Made
-
Dedicated Branch: Created and checked out
feat/channel-tarball-nixpkgsfrommainto ensure effortless rollback. -
System Flake Input:
flake.nix: Changednixpkgs.urlto"https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst".
-
Flake Registry Integration:
modules/system/base.nix: Addedinputsto module arguments and configurednix.registry.nixpkgs.flake = inputs.nixpkgs;.
-
Flake Lockfile:
flake.lock: Updated thenixpkgsinput node from typegithubto typetarball(https://releases.nixos.org/nixos/unstable/nixos-26.11pre1070770.8ce4ef6cb6f8/nixexprs.tar.zst). No other input nodes were disturbed.
-
Documentation & Dev Flake Examples:
docs/development-environments.md: UpdateddevShellexample to recommendhttps://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst.docs/antigravity.md: Updated example snippet to use the channel tarball.
Verification Results
1. Flake Checks
nix flake check
- Evaluated outputs for
nixosConfigurations.server,nixosConfigurations.desktop, andnixosConfigurations.laptop. - Result: All checks passed cleanly.
2. Dry-Build Validation (--no-link)
In accordance with repository invariants (Build, Never Switch), all three downstream host configurations were compiled dryly without mutating the running system:
desktop:Result: Success (nix build .#nixosConfigurations.desktop.config.system.build.toplevel --no-link/nix/store/ijg6vq9q7by98dfs1vs2vkzlcmrdjgg7-nixos-system-desktop-26.11.20260910.8ce4ef6.drv).laptop:Result: Success (nix build .#nixosConfigurations.laptop.config.system.build.toplevel --no-link/nix/store/x0jgx8hghmjbi0pd3cfs7qdc1p0k015b-nixos-system-laptop-26.11.20260910.8ce4ef6.drv).server:Result: Success (nix build .#nixosConfigurations.server.config.system.build.toplevel --no-link/nix/store/kcbi75d4laqywwir3hvggwqngw33dvwm-nixos-system-server-26.11.20260910.8ce4ef6.drv).