caddy: serviceMountDeps

This commit is contained in:
Simon Gardling 2025-07-10 18:52:33 -07:00
parent cc181d1332
commit 71d0c3e7e6
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -3,9 +3,17 @@
service_configs, service_configs,
username, username,
pkgs, pkgs,
serviceMountDeps,
... ...
}: }:
{ {
imports = [
(serviceMountDeps "caddy" [
"/var/lib/caddy"
service_configs.https.data_dir
] pkgs)
];
services.caddy = { services.caddy = {
enable = true; enable = true;
email = "titaniumtown@proton.me"; email = "titaniumtown@proton.me";
@ -23,6 +31,7 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d ${service_configs.https.data_dir} 750 ${config.services.caddy.user} ${config.services.caddy.group}" "d ${service_configs.https.data_dir} 750 ${config.services.caddy.user} ${config.services.caddy.group}"
"d /var/lib/caddy 750 ${config.services.caddy.user} ${config.services.caddy.group}"
]; ];
systemd.packages = with pkgs; [ nssTools ]; systemd.packages = with pkgs; [ nssTools ];