clanServices: Move garage test to appropriate location #3900

Move the garage clanService test to the garage clan service.
This commit is contained in:
a-kenji
2025-06-09 12:37:49 +02:00
parent 3d0c076035
commit fef0225c74
16 changed files with 14 additions and 3 deletions

View File

@@ -58,7 +58,6 @@ in
syncthing = import ./syncthing nixosTestArgs; syncthing = import ./syncthing nixosTestArgs;
deltachat = import ./deltachat nixosTestArgs; deltachat = import ./deltachat nixosTestArgs;
ergochat = import ./ergochat nixosTestArgs; ergochat = import ./ergochat nixosTestArgs;
garage = import ./garage nixosTestArgs;
heisenbridge = import ./heisenbridge nixosTestArgs; heisenbridge = import ./heisenbridge nixosTestArgs;
mycelium = import ./mycelium nixosTestArgs; mycelium = import ./mycelium nixosTestArgs;
localsend = import ./localsend nixosTestArgs; localsend = import ./localsend nixosTestArgs;

View File

@@ -1,6 +1,18 @@
{ lib, ... }: { lib, self, ... }:
{ {
clan.modules = { clan.modules = {
garage = lib.modules.importApply ./default.nix { }; garage = lib.modules.importApply ./default.nix { };
}; };
perSystem =
{ pkgs, ... }:
{
checks = lib.optionalAttrs (pkgs.stdenv.isLinux) {
garage = import ./tests/vm/default.nix {
inherit pkgs;
clan-core = self;
nixosLib = import (self.inputs.nixpkgs + "/nixos/lib") { };
};
};
};
} }

View File

@@ -17,7 +17,7 @@ nixosLib.runTest (
clan = { clan = {
directory = ./.; directory = ./.;
modules."@clan/garage" = ../../clanServices/garage/default.nix; modules."@clan/garage" = ../../default.nix;
inventory = { inventory = {
machines.server = { }; machines.server = { };