mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-22 22:09:34 +01:00
47 lines
1.2 KiB
Nix
47 lines
1.2 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";
|
||
|
lz4 = false;
|
||
|
ssh_identity = "/mnt/backup/rootNas_ed25519";
|
||
|
volume = "ssh://rootnas/jc-data";
|
||
|
snapshot_dir = "/snap";
|
||
|
target = "/mnt/backup/snap";
|
||
|
subvolume = ssd-subvolumes;
|
||
|
}
|
||
|
{
|
||
|
instance = "remote-backup-hdd";
|
||
|
lz4 = false;
|
||
|
ssh_identity = "/mnt/backup/rootNas_ed25519";
|
||
|
volume = "ssh://rootnas/mnt/data/jc-data";
|
||
|
snapshot_dir = "/mnt/data/snap2";
|
||
|
target = "/mnt/backup/snap2";
|
||
|
subvolume = hdd-subvolumes;
|
||
|
}
|
||
|
];
|
||
|
}
|