dotfiles/nixos/boxes/bolty/restic-server.nix

14 lines
295 B
Nix
Raw Normal View History

2021-05-31 09:15:44 +01:00
{ config, pkgs, ... }:
{
2022-01-25 22:27:36 +00:00
environment.systemPackages = with pkgs; [ restic ];
2021-05-31 09:15:44 +01:00
networking.firewall.allowedTCPPorts = [ 8000 ];
services.restic.server = {
enable = true;
dataDir = "/data/restic";
appendOnly = true;
prometheus = true;
2021-05-31 22:01:51 +01:00
extraFlags = [ "--no-auth" ];
2021-05-31 09:15:44 +01:00
};
}