speed up nixpkgs updates by using shallow clones

This commit is contained in:
Jörg Thalheim 2024-09-28 16:04:56 +02:00 committed by mergify[bot]
parent b6050751d1
commit 17372320c7
2 changed files with 11 additions and 10 deletions

19
flake.lock generated
View File

@ -42,18 +42,19 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1719824438, "lastModified": 1727506465,
"narHash": "sha256-pY0wosAgcr9W4vmGML0T3BVhQiGuKoozCbs2t+Je1zc=", "narHash": "sha256-3kTzEJ3X+RmNB9hamk+HnRj4MVLuZ2nzGaT1IeKuHZg=",
"owner": "NixOS", "ref": "nixos-unstable-small",
"repo": "nixpkgs", "rev": "0c839cfcda894af2030d5731414542a92a7af207",
"rev": "7f993cdf26ccef564eabf31fdb40d140821e12bc", "shallow": true,
"type": "github" "type": "git",
"url": "https://github.com/NixOS/nixpkgs"
}, },
"original": { "original": {
"owner": "NixOS",
"ref": "nixos-unstable-small", "ref": "nixos-unstable-small",
"repo": "nixpkgs", "shallow": true,
"type": "github" "type": "git",
"url": "https://github.com/NixOS/nixpkgs"
} }
}, },
"root": { "root": {

View File

@ -2,7 +2,7 @@
description = "Dependencies to deploy a nixos-wiki"; description = "Dependencies to deploy a nixos-wiki";
inputs = { 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.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.url = "github:numtide/treefmt-nix";