From fd81b9bd38f3ce5fbaa75b402ea23f8587e399f1 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sat, 3 Oct 2026 21:35:38 -0700 Subject: nixpkgs pin from channels rather than github --- default.nix | 8 +++----- flake.lock | 17 +++++++---------- flake.nix | 2 +- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/default.nix b/default.nix index dafe54f..235d4e5 100644 --- a/default.nix +++ b/default.nix @@ -1,11 +1,9 @@ let lock = builtins.readFile ./flake.lock |> builtins.fromJSON; - defaultNixpkgs = builtins.fetchGit { - url = "https://github.com/NixOS/nixpkgs"; - shallow = true; - inherit (lock.nodes.nixpkgs.locked) rev; - inherit (lock.nodes.nixpkgs.original) ref; + defaultNixpkgs = builtins.fetchTarball { + inherit (lock.nodes.nixpkgs.locked) url; + sha256 = lock.nodes.nixpkgs.locked.narHash; }; disko = builtins.fetchTarball { diff --git a/flake.lock b/flake.lock index 30e0aa2..615c445 100644 --- a/flake.lock +++ b/flake.lock @@ -23,18 +23,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1781074563, - "narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca", - "type": "github" + "lastModified": 1790822859, + "narHash": "sha256-VBA0QerzzmL+4wxgtwiCdiLwLpJg2/9xOxhgO3BRJQA=", + "rev": "c59305bab2065cfecc4944690d9eedbb56f3a9fa", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1083223.c59305bab206/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 31c498a..7a33482 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "Personal monorepo"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"; disko.url = "github:nix-community/disko/latest"; disko.inputs.nixpkgs.follows = "nixpkgs"; -- cgit v1.3.1