2021-05-23 18:18:40 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
# Ensure the directory for deployment diffs exists.
|
|
|
|
systemd.tmpfiles.rules = [
|
2021-09-11 03:20:28 +02:00
|
|
|
"d /var/html/deploys.tvl.fyi/diff 0755 nginx nginx -"
|
2021-05-23 18:18:40 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."deploys.tvl.fyi" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = "/var/html/deploys.tvl.fyi";
|
|
|
|
};
|
2021-09-18 16:44:40 +02:00
|
|
|
|
|
|
|
services.depot.restic.paths = [ "/var/html/deploys.tvl.fyi" ];
|
2021-05-23 18:18:40 +02:00
|
|
|
};
|
|
|
|
}
|