Skip to content

Commit

Permalink
feat: Add backup configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Jan 13, 2024
1 parent 519ce92 commit 3a63424
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
41 changes: 41 additions & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,47 @@

services.pcscd.enable = true;

services.restic.backups = {
backblaze = {
passwordFile = "/home/dm/secrets/restic-password";
paths = [
"/home/dm/"
];
exclude = [
"/home/dm/.cache/"
"/home/dm/.local/"
"/home/dm/.mozilla/"

"*.pyc"

# Backups
"/home/dm/Vacances/Sabbatique/Backup"
"/home/dm/Phones/Mi4S/PhoneBackUp"

# Random large files
"/home/dm/Vacances/Sabbatique/Maps/"

# Secrets
"/home/dm/secrets/"
];
repository = "s3:s3.us-east-005.backblazeb2.com/dm-backups";
extraBackupArgs = [
"--one-file-system"
];
user = "dm";
initialize = true;
environmentFile = "/home/dm/secrets/restic-environment";
timerConfig.OnCalendar = "daily";
backupCleanupCommand = "${pkgs.curl}/bin/curl https://hc-ping.com/571e1b3a-10b2-4bcb-bdef-3c2683ab72b5";
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 4"
"--keep-yearly 10"
];
};
};


# Hardware
hardware = {
bluetooth = {
Expand Down
1 change: 0 additions & 1 deletion home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ in
enableSshSupport = true;
# enableZshIntegration = true;
};

};

xdg.configFile = {
Expand Down

0 comments on commit 3a63424

Please sign in to comment.