Server: add borg repos
This commit is contained in:
parent
2d801ae06a
commit
4828dc5a21
2 changed files with 19 additions and 0 deletions
18
roles/server/borg.nix
Normal file
18
roles/server/borg.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
./headscale.nix
|
./headscale.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
./rust_motd.nix
|
./rust_motd.nix
|
||||||
|
./borg.nix
|
||||||
./adguard.nix
|
./adguard.nix
|
||||||
./grafana.nix
|
./grafana.nix
|
||||||
./prometheus.nix
|
./prometheus.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue