nixos-config/modules/rest-server.nix

16 lines
276 B
Nix

{ 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 ];
};
}