always include gitMinimal

the condition was actually the wrong way around and we still need git in
nix for some operations.
This commit is contained in:
Jörg Thalheim
2024-11-26 12:57:31 +01:00
committed by Mic92
parent 41e5192f0f
commit 94cef8a28c

View File

@@ -1,23 +1,18 @@
{ {
pkgs, pkgs,
lib,
config,
... ...
}: }:
{ {
environment.systemPackages = environment.systemPackages = [
[ # essential debugging tools for networked services
# essential debugging tools for networked services pkgs.dnsutils
pkgs.dnsutils pkgs.tcpdump
pkgs.tcpdump pkgs.curl
pkgs.curl 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`
]
++ lib.optional (lib.versionAtLeast config.nix.package.version "2.24") pkgs.gitMinimal
# needed to deploy via `clan machines update` if the flake has a git input ];
# newer version of nix do have `libgit2`
pkgs.gitMinimal;
} }