a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
22 lines
447 B
Nix
22 lines
447 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./base.nix
|
|
];
|
|
|
|
config = {
|
|
# Ensure the directory for deployment diffs exists.
|
|
systemd.tmpfiles.rules = [
|
|
"d /var/html/deploys.tvl.fyi/diff 0755 nginx nginx -"
|
|
];
|
|
|
|
services.nginx.virtualHosts."deploys.tvl.fyi" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = "/var/html/deploys.tvl.fyi";
|
|
};
|
|
|
|
services.depot.restic.paths = [ "/var/html/deploys.tvl.fyi" ];
|
|
};
|
|
}
|