21 lines
374 B
Nix
21 lines
374 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
./base.nix
|
||
|
];
|
||
|
|
||
|
config = {
|
||
|
# Ensure the directory for deployment diffs exists.
|
||
|
systemd.tmpfiles.rules = [
|
||
|
"d /var/html/deploys.tvl.fyi 0755 nginx nginx -"
|
||
|
];
|
||
|
|
||
|
services.nginx.virtualHosts."deploys.tvl.fyi" = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
root = "/var/html/deploys.tvl.fyi";
|
||
|
};
|
||
|
};
|
||
|
}
|