clanServices: Move localsend test to appropriate location

Move the localsend clanService test to the localsend clan service.
This commit is contained in:
a-kenji
2025-06-09 12:25:50 +02:00
parent 050d582230
commit 508e8cf85e
4 changed files with 14 additions and 4 deletions

View File

@@ -50,7 +50,6 @@ in
matrix-synapse = self.clanLib.test.containerTest ./matrix-synapse nixosTestArgs;
postgresql = self.clanLib.test.containerTest ./postgresql nixosTestArgs;
# Clan Tests
dummy-inventory-test = import ./dummy-inventory-test nixosTestArgs;
admin = import ./admin nixosTestArgs;
borgbackup = import ./borgbackup nixosTestArgs;
@@ -61,7 +60,6 @@ in
garage = import ./garage nixosTestArgs;
heisenbridge = import ./heisenbridge nixosTestArgs;
mycelium = import ./mycelium nixosTestArgs;
localsend = import ./localsend nixosTestArgs;
}
// lib.optionalAttrs (pkgs.stdenv.hostPlatform.system == "aarch64-linux") {
# for some reason this hangs in an odd place in CI, but it works on my machine ...

View File

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

View File

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