27 lines
535 B
Nix
27 lines
535 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
service_configs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
# TODO! fix conflicting definition values
|
|
/*
|
|
(lib.serviceMountDeps "caddy" [
|
|
service_configs.https.senior_project_dir
|
|
])
|
|
*/
|
|
];
|
|
|
|
services.caddy.virtualHosts."senior-project".extraConfig = ''
|
|
root * ${service_configs.https.senior_project_dir}
|
|
file_server browse
|
|
'';
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"d ${service_configs.https.senior_project_dir} 770 ${config.services.caddy.user} ${config.services.caddy.group}"
|
|
];
|
|
}
|