dotfiles/nixos/boxes/bolty/restic-server.nix
2022-01-25 22:27:36 +00:00

13 lines
295 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ restic ];
networking.firewall.allowedTCPPorts = [ 8000 ];
services.restic.server = {
enable = true;
dataDir = "/data/restic";
appendOnly = true;
prometheus = true;
extraFlags = [ "--no-auth" ];
};
}