diff options
Diffstat (limited to 'hosts/tahoe')
-rw-r--r-- | hosts/tahoe/default.nix | 19 | ||||
-rw-r--r-- | hosts/tahoe/services.nix | 16 |
2 files changed, 20 insertions, 15 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 diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix index 4b29870..4056df3 100644 --- a/hosts/tahoe/services.nix +++ b/hosts/tahoe/services.nix @@ -23,21 +23,7 @@ in promtail.enable = true; node-exporter.enable = true; }; - backup = { - enable = true; - repository = "/data/slow/backups/hosts/tahoe"; - 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 = [ ]; - }; + sendsms.enable = true; }; } |