only add gitMinimal for older nix version
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
@@ -16,7 +15,9 @@
|
|||||||
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")
|
||||||
# needed to deploy via `clan machines update` if the flake has a git input
|
# needed to deploy via `clan machines update` if the flake has a git input
|
||||||
pkgs.gitMinimal
|
# newer version of nix do have `libgit2`
|
||||||
];
|
pkgs.gitMinimal;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user