diff options
author | Franck Cuny <franck@fcuny.net> | 2023-05-12 11:37:57 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-05-12 11:37:57 -0700 |
commit | ce64d9bbb27e2b268cb5d16f4960c7ce8fd385d1 (patch) | |
tree | b1a63c25f2b65a360f91157d0755ae078a2a8332 /hosts/tahoe/default.nix | |
parent | profiles/backup: fix path to the ssh keys (diff) | |
download | world-ce64d9bbb27e2b268cb5d16f4960c7ce8fd385d1.tar.gz |
hosts: move around backup configuration
Diffstat (limited to 'hosts/tahoe/default.nix')
-rw-r--r-- | hosts/tahoe/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hosts/tahoe/default.nix b/hosts/tahoe/default.nix index ae4bef8..ade4b5b 100644 --- a/hosts/tahoe/default.nix +++ b/hosts/tahoe/default.nix @@ -1,4 +1,7 @@ { config, pkgs, hostname, self, ... }: +let + secrets = config.age.secrets; +in { imports = [ ./boot.nix @@ -17,6 +20,22 @@ "${self}/profiles/hardware/amd.nix" ]; + my.services.backup = { + enable = true; + repository = "/data/slow/backups/hosts/${config.networking.hostName}"; + timerConfig = { OnCalendar = "00:15"; }; + passwordFile = secrets."restic/repo-systems".path; + paths = + [ + "/data/fast/music" + "/data/fast/photos" + "/home/fcuny/documents" + "/home/fcuny/workspace" + "/home/fcuny/media" + ]; + exclude = [ ]; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave |