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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue