mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore(temp): set address for dandelion
This commit is contained in:
parent
7d6257ddd5
commit
7a31516be1
1 changed files with 3 additions and 25 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
hostname = "violet";
|
hostname = "violet";
|
||||||
repo = "ssh://dandelion.booping.local:${toString config.services.openssh.ports}/spinners/rootvol/backups/${hostname}";
|
repo = "ssh://dandelion:${toString config.services.openssh.ports}/spinners/rootvol/backups/${hostname}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.borgbackup.jobs = {
|
services.borgbackup.jobs = {
|
||||||
|
|
@ -10,6 +10,7 @@ in
|
||||||
"/home/liv/MinecraftDocker"
|
"/home/liv/MinecraftDocker"
|
||||||
];
|
];
|
||||||
repo = "${repo}/MinecraftDocker-tulip";
|
repo = "${repo}/MinecraftDocker-tulip";
|
||||||
|
encryption.mode = "none";
|
||||||
compression = "auto,zstd";
|
compression = "auto,zstd";
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
postHook = ''
|
postHook = ''
|
||||||
|
|
@ -25,6 +26,7 @@ in
|
||||||
"/var/lib"
|
"/var/lib"
|
||||||
];
|
];
|
||||||
repo = "${repo}/var-lib";
|
repo = "${repo}/var-lib";
|
||||||
|
encryption.mode = "none";
|
||||||
compression = "auto,zstd";
|
compression = "auto,zstd";
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
postHook = ''
|
postHook = ''
|
||||||
|
|
@ -35,29 +37,5 @@ in
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# "violet-random" = {
|
|
||||||
# paths = [
|
|
||||||
# "/random"
|
|
||||||
# ];
|
|
||||||
# exclude = [
|
|
||||||
# "/random/a"
|
|
||||||
# "/random/a"
|
|
||||||
# ];
|
|
||||||
# encryption = {
|
|
||||||
# mode = "";
|
|
||||||
# passCommand = "";
|
|
||||||
# };
|
|
||||||
# environment.BORG_RSH = "ssh -i ${config.sops.secrets."ssh_private_key_violet".path}";
|
|
||||||
# repo = "${repo}/violet/random";
|
|
||||||
# compression = "auto,zstd";
|
|
||||||
# startAt = "daily";
|
|
||||||
# postHook = ''
|
|
||||||
# if [ $exitStatus -eq 2 ]; then
|
|
||||||
# ${pkgs.ntfy-sh}/bin/ntfy send https://ntfy.${domain}/nixbox "BorgBackup: nixbox backup failed with errors"
|
|
||||||
# else
|
|
||||||
# ${pkgs.ntfy-sh}/bin/ntfy send https://ntfy.${domain}/nixbox "BorgBackup: nixbox backup completed succesfully with exit status $exitStatus"
|
|
||||||
# fi
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue