From 7ce18438a0428f4a160da34923fc82932bf78916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 22 Dec 2019 10:50:55 +0000 Subject: [PATCH] backups to brix --- nixos/common-services.nix | 2 +- nixos/zerotier.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/common-services.nix b/nixos/common-services.nix index 59243699..fefb413f 100644 --- a/nixos/common-services.nix +++ b/nixos/common-services.nix @@ -34,7 +34,7 @@ restic.backups.home = { passwordFile = "/etc/nixos/secrets/restic-password"; paths = [ "/home" ]; - repository = "sftp:fetcher@brix:/mnt/data/backup-targets"; + repository = "rest:http://brix.local:8000/"; timerConfig = { OnCalendar = "hourly"; }; }; diff --git a/nixos/zerotier.nix b/nixos/zerotier.nix index 3ba07f50..92ac5d4d 100644 --- a/nixos/zerotier.nix +++ b/nixos/zerotier.nix @@ -4,4 +4,9 @@ enable = true; joinNetworks = [ "d3ecf5726d580b5a" ]; }; + + networking.hosts = { + "172.23.223.219" = [ "brix.local" ]; + }; + }