test: Apply overlay only on darwin

Other platforms need not unnecessarily build these packages
This commit is contained in:
Sridhar Ratnakumar 2024-03-07 13:26:07 -05:00 committed by Sridhar Ratnakumar
parent c03d66eb44
commit 5a54b621ab
2 changed files with 11 additions and 2 deletions

View File

@ -17,7 +17,7 @@
inherit system;
# Required for elastic search
config.allowUnfree = true;
overlays = import ./overlays;
overlays = import ./overlays { inherit system lib; };
};
process-compose =
let

View File

@ -1,4 +1,13 @@
[
{ lib, system, ... }:
let
isDarwin = system == "x86_64-darwin" || system == "aarch64-darwin";
in
lib.optionals isDarwin [
(import ./pgadmin.nix)
(import ./grafana.nix)
]
++
[
]