Server: add borg repos

This commit is contained in:
Toast 2025-12-14 02:18:31 +01:00
parent 2d801ae06a
commit 4828dc5a21
2 changed files with 19 additions and 0 deletions

18
roles/server/borg.nix Normal file
View file

@ -0,0 +1,18 @@
{...}: {
services.borgbackup = {
repos = {
backups = {
allowSubRepos = true;
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEMtbHUcYanH/guWaKNjGr/IGa8gvI/xRTcNAI9yXhnK BorgBackup backups key"
];
};
};
};
services.openssh.settings = {
AllowUsers = [
"borg@*.tailscale"
"borg@192.168.1.0/24"
];
};
}

View file

@ -14,6 +14,7 @@
./headscale.nix
./caddy.nix
./rust_motd.nix
./borg.nix
./adguard.nix
./grafana.nix
./prometheus.nix