From ba2ccb559c4b348ddbcd78e2cab0a46139a8c002 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 23 Apr 2021 20:38:22 +0200 Subject: [PATCH] boreal: setup borgbackup --- hosts/boreal/default.nix | 22 ++++++++++++++++++++++ secrets/borg-backup/boreal-repo.secret | Bin 0 -> 63 bytes secrets/borg-backup/default.nix | 1 + 3 files changed, 23 insertions(+) create mode 100644 secrets/borg-backup/boreal-repo.secret diff --git a/hosts/boreal/default.nix b/hosts/boreal/default.nix index 2c6783b..13b0135 100644 --- a/hosts/boreal/default.nix +++ b/hosts/boreal/default.nix @@ -39,6 +39,28 @@ in # List services that you want to enable: my.services = { + borg-backup = { + enable = true; + repo = secrets.borg-backup.boreal-repo; + paths = [ + "/home/alarsyo" + ]; + exclude = [ + "/home/alarsyo/Downloads" + + # Rust builds using half my storage capacity + "/home/alarsyo/*/target" + + # C build crap + "*.a" + "*.o" + "*.so" + + # ignore all dotfiles as .config and .cache can become quite big + "re:^/home/alarsyo/\\." + ]; + }; + wireguard = { enable = false; iface = "wg"; diff --git a/secrets/borg-backup/boreal-repo.secret b/secrets/borg-backup/boreal-repo.secret new file mode 100644 index 0000000000000000000000000000000000000000..db1104e51ac95e4d24ff4db0562e7c546f2576b8 GIT binary patch literal 63 zcmV-F0KoqMM@dveQdv+`0Ly>zCf`-5)IUT^8K#l9=8Ah literal 0 HcmV?d00001 diff --git a/secrets/borg-backup/default.nix b/secrets/borg-backup/default.nix index 1d6b630..11dad25 100644 --- a/secrets/borg-backup/default.nix +++ b/secrets/borg-backup/default.nix @@ -1,4 +1,5 @@ { lib }: { + boreal-repo = lib.fileContents ./boreal-repo.secret; poseidon-repo = lib.fileContents ./poseidon-repo.secret; }