only add gitMinimal for older nix version

This commit is contained in:
Jörg Thalheim
2024-10-29 13:26:58 +01:00
parent 467b92063c
commit eb761f3105

View File

@@ -1,4 +1,3 @@
{ pkgs, ... }:
{ {
pkgs, pkgs,
lib, lib,
@@ -15,8 +14,10 @@
pkgs.jq pkgs.jq
pkgs.htop pkgs.htop
pkgs.nixos-facter # for `clan machines update-hardware-config --backend nixos-facter` pkgs.nixos-facter # for `clan machines update-hardware-config --backend nixos-facter`
# needed to deploy via `clan machines update` if the flake has a git input ]
pkgs.gitMinimal ++ lib.optional (lib.versionAtLeast config.nix.package.version "2.24")
]; # needed to deploy via `clan machines update` if the flake has a git input
# newer version of nix do have `libgit2`
pkgs.gitMinimal;
} }