48 lines
1022 B
Nix
48 lines
1022 B
Nix
{
|
|
self,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
module = ./default.nix;
|
|
in
|
|
{
|
|
clan.modules = {
|
|
ssl = module;
|
|
};
|
|
perSystem =
|
|
{ ... }:
|
|
let
|
|
# Module that contains the tests
|
|
# This module adds:
|
|
# - legacyPackages.<system>.eval-tests-ssl
|
|
# - checks.<system>.eval-tests-ssl
|
|
# unit-test-module = (
|
|
# self.clanLib.test.flakeModules.makeEvalChecks {
|
|
# inherit module;
|
|
# inherit inputs;
|
|
# fileset = lib.fileset.unions [
|
|
# # The ssl service being tested
|
|
# ../../clanServices/ssl
|
|
# # Required modules
|
|
# ../../nixosModules/clanCore
|
|
# ];
|
|
# testName = "ssl";
|
|
# tests = ./tests/eval-tests.nix;
|
|
# # Optional arguments passed to the test
|
|
# testArgs = { };
|
|
# }
|
|
# );
|
|
in
|
|
{
|
|
# imports = [ unit-test-module ];
|
|
|
|
clan.nixosTests.ssl = {
|
|
imports = [ ./tests/vm/default.nix ];
|
|
|
|
clan.modules.ssl = module;
|
|
};
|
|
};
|
|
}
|