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";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/nas/restic" = {
|
||||||
|
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/ame";
|
||||||
|
fsType = "nfs";
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180";}
|
{device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180";}
|
||||||
];
|
];
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
sops.secrets.restic-repo-pwd = {};
|
sops.secrets.restic-ame = {
|
||||||
|
sopsFile = ../../../secrets/restic/secrets.yaml;
|
||||||
|
};
|
||||||
environment.systemPackages = [pkgs.restic];
|
environment.systemPackages = [pkgs.restic];
|
||||||
services.restic = {
|
services.restic = {
|
||||||
backups = {
|
backups = {
|
||||||
|
@ -29,8 +31,8 @@
|
||||||
"--keep-monthly=2"
|
"--keep-monthly=2"
|
||||||
];
|
];
|
||||||
initialize = true;
|
initialize = true;
|
||||||
repository = "/nas/home";
|
repository = "/nas/restic";
|
||||||
passwordFile = config.sops.secrets.restic-repo-pwd.path;
|
passwordFile = config.sops.secrets.restic-ame.path;
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue