From ce64d9bbb27e2b268cb5d16f4960c7ce8fd385d1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 12 May 2023 11:37:57 -0700 Subject: hosts: move around backup configuration --- hosts/aptos/services.nix | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 hosts/aptos/services.nix (limited to 'hosts/aptos/services.nix') diff --git a/hosts/aptos/services.nix b/hosts/aptos/services.nix deleted file mode 100644 index 742b014..0000000 --- a/hosts/aptos/services.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ config, ... }: -let - secrets = config.age.secrets; - ssh-key-path = secrets."restic/ssh-key".path; -in -{ - my.services = { - backup = { - enable = true; - repository = "sftp:192.168.6.40:/aptos"; - exclude = [ - # paths that I don't want to backup - "/home/fcuny/workspace/tmp" - - # various development related files - "**/target" - "**/.direnv" - "**/result" - ]; - timerConfig = { OnCalendar = "06:30"; }; - passwordFile = secrets."restic/repo-users".path; - extraOptions = [ - "sftp.command='ssh backup@192.168.6.40 -i ${ssh-key-path} -s sftp'" - ]; - paths = [ - "/home/fcuny/workspace" - "/home/fcuny/media" - "/home/fcuny/documents" - ]; - }; - }; -} -- cgit 1.4.1