From 3affd1b8b532d78dd124ebbc0ee595f47d832fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 15 May 2025 17:25:12 +0200 Subject: [PATCH] fix: switch from the gh tarball to the nixpkgs channel This saves ~15MB from the download makings stuff faster (hopefully). --- flake.lock | 15 ++++++--------- flake.nix | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 8d22a14..2e774e6 100644 --- a/flake.lock +++ b/flake.lock @@ -37,18 +37,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1747179050, - "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", - "owner": "NixOS", - "repo": "nixpkgs", + "lastModified": 1747275534, + "narHash": "sha256-isj7Hlm5+PuoyyfVWOWgv52WXaKV6QgegYr9UKjBeQ4=", "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", - "type": "github" + "type": "tarball", + "url": "https://releases.nixos.org/nixos/unstable/nixos-25.05pre799423.adaa24fbf467/nixexprs.tar.xz?rev=adaa24fbf46737f3f1b5497bf64bae750f82942e" }, "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" + "type": "tarball", + "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" } }, "root": { diff --git a/flake.nix b/flake.nix index f93aaca..347a1d6 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ url = "github:hercules-ci/flake-parts"; inputs.nixpkgs-lib.follows = "nixpkgs"; }; - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; systems.url = "github:nix-systems/default"; treefmt-nix = { url = "github:numtide/treefmt-nix";