nixos-config/modules/rest-server.nix

16 lines
276 B
Nix
Raw Normal View History

2022-05-25 12:50:35 +00:00
{ lib, config, ... }:
{
services.restic.server = {
enable = true;
appendOnly = true;
extraFlags = [ "--no-auth" ];
dataDir = "/var/lib/backup";
prometheus = true;
};
networking = {
firewall.enable = true;
firewall.allowedTCPPorts = [ 8000 ];
};
}