2025-01-04 19:02:30 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
|
|
|
|
cfg = config.services.borgbackup;
|
|
|
|
in {
|
2024-03-02 22:04:23 -05:00
|
|
|
imports = [./module.nix];
|
|
|
|
|
2025-01-04 19:02:30 -05:00
|
|
|
config = mkIf (cfg.configs != {}) {
|
|
|
|
services.borgbackup = {
|
|
|
|
existingRepos = [
|
|
|
|
{
|
|
|
|
name = "docker";
|
|
|
|
host = "nos";
|
|
|
|
authorizedKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPijoxuSwH9IrS4poewzHHwe64UoX4QY7Qix5VhEdqKR root@servivi"
|
|
|
|
];
|
|
|
|
}
|
2024-07-13 22:12:35 -04:00
|
|
|
|
2025-01-04 19:02:30 -05:00
|
|
|
{
|
|
|
|
name = "mc";
|
|
|
|
host = "servivi";
|
|
|
|
authorizedKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPijoxuSwH9IrS4poewzHHwe64UoX4QY7Qix5VhEdqKR root@servivi"
|
|
|
|
];
|
|
|
|
}
|
2024-07-13 22:12:35 -04:00
|
|
|
|
2025-01-04 19:02:30 -05:00
|
|
|
{
|
|
|
|
name = "seven-days";
|
|
|
|
host = "nos";
|
|
|
|
authorizedKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPijoxuSwH9IrS4poewzHHwe64UoX4QY7Qix5VhEdqKR root@servivi"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-03-02 22:04:23 -05:00
|
|
|
};
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./default.nix;
|
2024-03-02 22:04:23 -05:00
|
|
|
}
|