Files
ad-nix/nixos/services/restic.nix
John Lancaster bca14b7326 added restic
2025-02-17 00:36:47 -06:00

22 lines
408 B
Nix

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