prepare for full borg
This commit is contained in:
parent
f90a2ce5f7
commit
2c9fa4fbe1
19 changed files with 212 additions and 134 deletions
|
|
@ -5,14 +5,33 @@ in {
|
|||
file = ../secrets/hidden_service/forgejo;
|
||||
};
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
lfs.enable = false;
|
||||
settings.server = {
|
||||
DOMAIN = "git.distrust.network";
|
||||
HTTP_PORT = forgejoPort;
|
||||
ROOT_URL = "https://git.distrust.network/";
|
||||
SSH_PORT = builtins.head config.services.openssh.ports;
|
||||
services = {
|
||||
forgejo = {
|
||||
enable = true;
|
||||
lfs.enable = false;
|
||||
settings.server = {
|
||||
DOMAIN = "git.distrust.network";
|
||||
HTTP_PORT = forgejoPort;
|
||||
ROOT_URL = "https://git.distrust.network/";
|
||||
SSH_PORT = builtins.head config.services.openssh.ports;
|
||||
};
|
||||
};
|
||||
borgbackup.jobs."forgejo" = {
|
||||
repo = "ssh://v4379v0z@v4379v0z.repo.borgbase.com/./repo";
|
||||
environment = {
|
||||
BORG_RSH = "ssh -i ${config.age.secrets."borg_ed25519".path} -o 'StrictHostKeyChecking=no'";
|
||||
};
|
||||
paths = [
|
||||
"/var/lib/forgejo"
|
||||
];
|
||||
encryption.mode = "none";
|
||||
compression = "auto,lzma";
|
||||
startAt = "daily";
|
||||
prune.keep = {
|
||||
daily = 7;
|
||||
weekly = 4;
|
||||
monthly = -1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue