WIP: test: Set up service tests

This commit is contained in:
Tristan Daniël Maat 2025-11-13 05:20:09 +08:00
parent 767a14ab6e
commit 3b03689d19
Signed by: tlater
GPG key ID: 02E935006CF2E8E7
4 changed files with 29 additions and 2 deletions

View file

@ -1 +1,6 @@
{ imports = [ ./crowdsec ]; }
{
imports = [
./crowdsec
./serviceTests.nix
];
}

20
modules/serviceTests.nix Normal file
View file

@ -0,0 +1,20 @@
/**
Module to make writing service-specific tests easy.
*/
{ lib, ... }:
let
inherit (lib) mkOption types;
in
{
options = {
serviceTests = mkOption {
type = types.attrsOf types.package;
description = ''
NixOS tests to run.
'';
default = { };
};
};
}