From f1038939f4674038461ad2dfb91473cb451df153 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Sat, 21 Jun 2025 12:59:19 +0500 Subject: [PATCH] chore: Flake | switch to flakehub for nixpkgs The GitHub CDN is slow af --- flake.lock | 17 ++++++++--------- flake.nix | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index cc4ee59..73c8ad5 100644 --- a/flake.lock +++ b/flake.lock @@ -20,17 +20,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1732030272, - "narHash": "sha256-gbBICByjt1UDdRhv5BM0J5aKmA3PCF/Wj9b3RWabtUE=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "f89fd475c539369dae474126b4d82ec87fbb2a1d", - "type": "github" + "lastModified": 1750365781, + "narHash": "sha256-XE/lFNhz5lsriMm/yjXkvSZz5DfvKJLUjsS6pP8EC50=", + "rev": "08f22084e6085d19bcfb4be30d1ca76ecb96fe54", + "revCount": 818804, + "type": "tarball", + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.818804%2Brev-08f22084e6085d19bcfb4be30d1ca76ecb96fe54/01978cc3-592f-7488-b61e-844ab20aa68b/source.tar.gz" }, "original": { - "owner": "nixos", - "repo": "nixpkgs", - "type": "github" + "type": "tarball", + "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1" } }, "root": { diff --git a/flake.nix b/flake.nix index 826b091..c09cfef 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Flake to work with homelab setup"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs"; + nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; flake-utils.url = "github:numtide/flake-utils"; };