mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
users/foo-dogsquared/services/backup: update local archive config
This commit is contained in:
parent
119fe3e4a8
commit
e29d445e83
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user