ame: update restic
All checks were successful
flake check / check (push) Successful in 4m34s
fmt check / check (push) Successful in 1m7s

This commit is contained in:
notohh 2024-01-15 02:28:23 -05:00
parent 3c182f558b
commit 31dbabf592
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 10 additions and 3 deletions

View file

@ -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";}
];

View file

@ -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";
};