From c60fe244585b2738d2e53cec5a7fa6088c428e91 Mon Sep 17 00:00:00 2001 From: Glen Goodwin Date: Tue, 19 Dec 2023 23:47:15 -0500 Subject: [PATCH] feat: add restic for backups --- common/nixos/restic.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 common/nixos/restic.nix diff --git a/common/nixos/restic.nix b/common/nixos/restic.nix new file mode 100644 index 0000000..3b452df --- /dev/null +++ b/common/nixos/restic.nix @@ -0,0 +1,14 @@ +{...}: { + services.restic.backups = { + backups = { + user = "gwg313"; + repository = "/backups"; + initialize = true; + passwordFile = "/home/gwg313/restic.txt"; + paths = ["/home/gwg313/Projects" "/home/gwg313/Documents" "/home/gwg313/.local/share/password-store" "/home/gwg313/.local/share/buku"]; + timerConfig = { + onCalendar = "saturday 23:00"; + }; + }; + }; +}