added restic

This commit is contained in:
John Lancaster
2025-02-17 00:36:47 -06:00
parent 895a9f18b1
commit bca14b7326
3 changed files with 26 additions and 3 deletions

View File

@@ -3,5 +3,6 @@
imports = [
./promtail.nix
./telegraf.nix
./restic.nix
];
}

21
nixos/services/restic.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
sops.secrets."restic_password" = { };
services.restic.backups = {
localbackup = {
repository = "/mnt/restic/appdaemon";
passwordFile = config.sops.secrets."restic_password".path;
initialize = true;
paths = [
"/home"
];
exclude = [
".cache"
".vscode-server"
".devenv"
".venv"
];
};
};
}