dotfiles/nixos/boxes/brix/restic-server.nix
2021-06-12 16:50:25 +01:00

14 lines
307 B
Nix

{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 8000 ];
services.restic.server = {
enable = true;
dataDir = "/data/restic";
appendOnly = true;
prometheus = true;
listenAddress = "brix.cyplo.github.beta.tailscale.net:8000";
extraFlags = [ "--no-auth" ];
};
}