mochi/nixos/hosts/shadowfax/config/borgmatic/plex.nix
Joseph Hanson f5e45209ec
remove restic, add borgmatic.
update template

update config template

update
2025-02-25 13:03:44 -06:00

40 lines
950 B
Nix

{
config,
pkgs,
...
}: {
mySystem.services.borgmatic = {
configurations.plex = {
source_directories = [
"/nahar/containers/volumes/plex"
];
repositories = [
{
label = "local";
path = "/eru/borg/plex";
}
{
label = "remote";
path = "ssh://kvq39z04@kvq39z04.repo.borgbase.com/./repo";
}
];
ssh_command = "${pkgs.openssh}/bin/ssh -i ${config.sops.secrets."borgmatic/plex/append_key".path}";
encryption_passcommand = ''${pkgs.coreutils-full}/bin/cat ${config.sops.secrets."borgmatic/plex/encryption_passphrase".path}'';
# Retention settings
keep_daily = 14;
exclude_patterns = [
"*/Cache/*"
];
zfs = {
zfs_command = "${pkgs.zfs}/bin/zfs";
mount_command = "${pkgs.util-linux}/bin/mount";
umount_command = "${pkgs.util-linux}/bin/umount";
};
};
};
}