tadpole: Assert that nginx is running when using gitea

This commit is contained in:
Alexander Heldt
2025-01-02 19:34:03 +01:00
parent 0532588679
commit 5095e8a94e

View File

@@ -7,8 +7,6 @@
let
conf = config.mod.gitea;
gitDomain = "git.${conf.baseDomain}";
nginxEnable = config.mod.nginx.enable;
in
{
options = {
@@ -37,8 +35,12 @@ in
};
};
config = lib.mkIf (conf.enable && nginxEnable) {
config = lib.mkIf conf.enable {
assertions = [
{
assertion = config.services.nginx.enable;
message = "Option 'config.services.nginx' must be enabled";
}
{
assertion = conf.baseDomain != "";
message = "Option 'mod.gitea.baseDomain' cannot be empty";