NixOS/system/services/caddy.nix

16 lines
254 B
Nix
Raw Normal View History

2024-06-13 13:52:45 +07:00
{ config, lib, ... }:
let
cfg = config.profile.services.caddy;
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/*
'';
};
};
}