added restic
This commit is contained in:
21
nixos/services/restic.nix
Normal file
21
nixos/services/restic.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user