mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-22 22:09:34 +01:00
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ config, pkgs, ... }:
|
|
let
|
|
# TODO: Remove duplicate variables below (reuse from yodaNas config).
|
|
ssd-subvolumes = {
|
|
"arch.p1st.de" = {};
|
|
"blogger.privacy1st.de" = {};
|
|
"changedetection.p1st.de" = {};
|
|
"cloud.privacy1st.de" = {};
|
|
"git.privacy1st.de" = {};
|
|
"mastodon-toot-follower.privacy1st.de" = {};
|
|
"money.p1st.de" = {};
|
|
"music.privacy1st.de" = {};
|
|
"paste.p1st.de" = {};
|
|
"proxy" = {};
|
|
"recipe.privacy1st.de" = {};
|
|
"traggo.privacy1st.de" = {};
|
|
};
|
|
hdd-subvolumes = {
|
|
"cloud.privacy1st.de" = {};
|
|
# MediaKollektiv: 796 GiB
|
|
"cloud.media-kollektiv.eu" = {};
|
|
};
|
|
in
|
|
{
|
|
# TODO: Enable lz4 when yodaHedgehog no longer has direct LAN connection.
|
|
yoda.btrbkBackups = [
|
|
{
|
|
instance = "remote-backup-ssd";
|
|
enable = false;
|
|
lz4 = false;
|
|
ssh_identity = "/root/.ssh/rootNas_ed25519";
|
|
volume = "ssh://rootNas/jc-data";
|
|
snapshot_dir = "/snap";
|
|
target = "/mnt/backup/snap";
|
|
subvolume = ssd-subvolumes;
|
|
}
|
|
{
|
|
instance = "remote-backup-hdd";
|
|
enable = false;
|
|
lz4 = false;
|
|
ssh_identity = "/root/.ssh/rootNas_ed25519";
|
|
volume = "ssh://rootNas/mnt/data/jc-data";
|
|
snapshot_dir = "/mnt/data/snap2";
|
|
target = "/mnt/backup/snap2";
|
|
subvolume = hdd-subvolumes;
|
|
}
|
|
];
|
|
}
|