ame: update restic
All checks were successful
flake check / check (push) Successful in 4m34s
fmt check / check (push) Successful in 1m7s
All checks were successful
flake check / check (push) Successful in 4m34s
fmt check / check (push) Successful in 1m7s
This commit is contained in:
parent
3c182f558b
commit
31dbabf592
2 changed files with 10 additions and 3 deletions
|
@ -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";}
|
||||
];
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue