users/foo-dogsquared/services/backup: update local archive config

This commit is contained in:
Gabriel Arazas 2024-12-03 12:41:22 +08:00
parent 119fe3e4a8
commit e29d445e83
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -116,22 +116,19 @@ in
};
})
(lib.mkIf (isFilesystemSet "archive") {
{
local-archive-personal = {
initService.enable = true;
initService.startAt = "04:30";
settings = let
removablePath = "${attrs.nixosConfig.state.paths.archive}/Backups";
in borgmaticCommonConfig {
settings = borgmaticCommonConfig {
encryption_passcommand = "cat ${getPath "repos/local-archive-personal/password"}";
repositories = lib.singleton {
path = removablePath;
path = "\${BORG_PERSONAL_FDS_PATH:-${attrs.nixosConfig.state.paths.laptop-ssd}/Backups/foodogsquared}";
label = "local-archive";
};
before_backup = lib.singleton "${checkRemovableMountScript} ${removablePath}";
};
};
})
}
];
# My game backups.