borgbackup: Move tests close to service

This commit is contained in:
a-kenji
2025-06-11 13:47:29 +02:00
parent f86816ec1e
commit a5d15d7832
14 changed files with 199 additions and 2 deletions

View File

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