2024-06-13 13:52:45 +07:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.profile.services.caddy;
|
2024-06-13 14:04:10 +07:00
|
|
|
inherit (lib) mkIf;
|
2024-06-13 13:52:45 +07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
import /etc/caddy/sites-enabled/*
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|