mirror of https://gitlab.crans.org/nounous/nixos
20 lines
376 B
Nix
20 lines
376 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.restic.server = {
|
|
enable = true;
|
|
|
|
dataDir = "/backups";
|
|
listenAddress = "localhost:4242";
|
|
privateRepos = true;
|
|
};
|
|
|
|
services.nginx.virtualHosts = {
|
|
"${config.networking.hostName}.adm.crans.org" = {
|
|
locations."/" = {
|
|
proxyPass = "http://${config.services.restic.server.listenAddress}";
|
|
};
|
|
};
|
|
};
|
|
}
|