From 17372320c78b716f503e425cbd907ce1eb46192c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 28 Sep 2024 16:04:56 +0200 Subject: [PATCH] speed up nixpkgs updates by using shallow clones --- flake.lock | 19 ++++++++++--------- flake.nix | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index efda6f1..1f17f2d 100644 --- a/flake.lock +++ b/flake.lock @@ -42,18 +42,19 @@ }, "nixpkgs": { "locked": { - "lastModified": 1719824438, - "narHash": "sha256-pY0wosAgcr9W4vmGML0T3BVhQiGuKoozCbs2t+Je1zc=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "7f993cdf26ccef564eabf31fdb40d140821e12bc", - "type": "github" + "lastModified": 1727506465, + "narHash": "sha256-3kTzEJ3X+RmNB9hamk+HnRj4MVLuZ2nzGaT1IeKuHZg=", + "ref": "nixos-unstable-small", + "rev": "0c839cfcda894af2030d5731414542a92a7af207", + "shallow": true, + "type": "git", + "url": "https://github.com/NixOS/nixpkgs" }, "original": { - "owner": "NixOS", "ref": "nixos-unstable-small", - "repo": "nixpkgs", - "type": "github" + "shallow": true, + "type": "git", + "url": "https://github.com/NixOS/nixpkgs" } }, "root": { diff --git a/flake.nix b/flake.nix index 95ee3df..4eed4ea 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Dependencies to deploy a nixos-wiki"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; + nixpkgs.url = "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixos-unstable-small"; flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; treefmt-nix.url = "github:numtide/treefmt-nix";