Facter: only export the standard linux package for caching

This commit is contained in:
Johannes Kirschbauer
2024-08-26 09:12:34 +02:00
parent c43599bfa0
commit 3d8357ad00
2 changed files with 39 additions and 1 deletions

View File

@@ -58,8 +58,14 @@
# Inherit the nixos-facter package so its build is chached in clans binary cache
{
perSystem =
{ inputs', ... }:
# Facter doesnt have a package for darwin yet.
{
inputs',
system,
lib,
...
}:
lib.optionalAttrs (system == "x86_64-linux") {
packages.nixos-facter = inputs'.nixos-facter.packages.default;
};
}