From 31dbabf5924dfb21803a327e476beec798e4545a Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 15 Jan 2024 02:28:23 -0500 Subject: [PATCH] ame: update restic --- hosts/ame/hardware.nix | 5 +++++ hosts/ame/services/restic.nix | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/hosts/ame/hardware.nix b/hosts/ame/hardware.nix index 368c74f..7301562 100644 --- a/hosts/ame/hardware.nix +++ b/hosts/ame/hardware.nix @@ -23,6 +23,11 @@ fsType = "vfat"; }; + fileSystems."/nas/restic" = { + device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/ame"; + fsType = "nfs"; + }; + swapDevices = [ {device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180";} ]; diff --git a/hosts/ame/services/restic.nix b/hosts/ame/services/restic.nix index 84c8c9f..a919444 100644 --- a/hosts/ame/services/restic.nix +++ b/hosts/ame/services/restic.nix @@ -3,7 +3,9 @@ config, ... }: { - sops.secrets.restic-repo-pwd = {}; + sops.secrets.restic-ame = { + sopsFile = ../../../secrets/restic/secrets.yaml; + }; environment.systemPackages = [pkgs.restic]; services.restic = { backups = { @@ -29,8 +31,8 @@ "--keep-monthly=2" ]; initialize = true; - repository = "/nas/home"; - passwordFile = config.sops.secrets.restic-repo-pwd.path; + repository = "/nas/restic"; + passwordFile = config.sops.secrets.restic-ame.path; timerConfig = { OnCalendar = "daily"; };