packages/checks/{ascensions,garage}: use our consul package

This commit is contained in:
Max Headroom 2024-06-04 14:52:15 +02:00
parent 7f9881e932
commit ae4385d6d3
3 changed files with 8 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ testers, nixosModules }:
{ testers, nixosModules, consul }:
let
dataDir = {
@ -18,6 +18,8 @@ testers.runNixOSTest {
./modules/consul.nix
];
extraBaseModules.services.consul.package = consul;
nodes = let
common = { config, lib, ... }: let
inherit (config.networking) hostName;

View file

@ -4,11 +4,12 @@
perSystem = { filters, pkgs, self', system, ... }: {
checks = lib.mkIf (system == "x86_64-linux") {
ascensions = pkgs.callPackage ./ascensions.nix {
inherit (self'.packages) consul;
inherit (self) nixosModules;
};
garage = pkgs.callPackage ./garage.nix {
inherit (self'.packages) garage;
inherit (self'.packages) garage consul;
inherit (self) nixosModules;
inherit (config) cluster;
};

View file

@ -1,4 +1,4 @@
{ testers, nixosModules, cluster, garage }:
{ testers, nixosModules, cluster, garage, consul }:
testers.runNixOSTest {
name = "garage";
@ -7,6 +7,8 @@ testers.runNixOSTest {
./modules/consul.nix
];
extraBaseModules.services.consul.package = consul;
nodes = let
common = { config, lib, ... }: let
inherit (config.networking) hostName primaryIPAddress;