sombrero: Add nginx module

This commit is contained in:
Alexander Heldt
2023-10-22 20:26:39 +02:00
parent 1c5ce3f93c
commit f1a9bfae16
4 changed files with 43 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
{ lib, config, ... }:
let
enabled = config.mod.calibre-web.enable;
nginxEnabled = config.mod.nginx.enable;
in
{
options = {
@@ -9,7 +10,7 @@ in
};
};
config = lib.mkIf enabled {
config = lib.mkIf (enabled && nginxEnabled) {
services = {
calibre-web = {
enable = true;