enhancement/19 #20

Merged
wi11-holdsworth merged 2 commits from enhancement/19 into main 2025-10-01 00:22:04 +10:00
5 changed files with 44 additions and 28 deletions
Showing only changes of commit 649f6d048b - Show all commits

View file

@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
...
}:
let
@ -32,16 +31,7 @@ in
users.groups.media = { };
services.borgbackup.jobs =
import ../backup.nix "srv"
{
paths = [ "/srv" ];
}
{
inherit config;
inherit lib;
inherit pkgs;
};
services.borgmatic.settings.source_directories = [ "/srv" ];
};
imports = [ ];

View file

@ -16,6 +16,18 @@ in
mediaLocation = "/srv/immich";
};
# database backup
borgmatic.settings = {
postgresql_databases = [
{
name = "immich";
hostname = "localhost";
username = "root";
password = "{credential systemd borgmatic-pg}";
}
];
};
nginx = {
clientMaxBodySize = "50000M";
virtualHosts."${feature}.fi33.buzz" = {

View file

@ -20,6 +20,18 @@ in
};
};
# database backup
borgmatic.settings = {
postgresql_databases = [
{
name = "miniflux";
hostname = "localhost";
username = "root";
password = "{credential systemd borgmatic-pg}";
}
];
};
# reverse proxy
nginx = {
virtualHosts."${feature}.fi33.buzz" = {

View file

@ -22,6 +22,18 @@ in
};
};
# database backup
borgmatic.settings = {
postgresql_databases = [
{
name = "paperless";
hostname = "localhost";
username = "root";
password = "{credential systemd borgmatic-pg}";
}
];
};
# reverse proxy
nginx = {
virtualHosts."${feature}.fi33.buzz" = {

View file

@ -63,24 +63,14 @@ in
};
};
# backup
borgbackup.jobs =
# we only need one syncthing host to be backed up
# choose server because borgbackup is the most fleshed out
# on srv currently
borgmatic.settings =
if userName == "srv" then
import ../backup.nix feature
{
paths = [
"/home/srv/.config/syncthing"
"/home/srv/Sync"
];
}
{
inherit config;
inherit lib;
inherit pkgs;
}
{
source_directories = [
"/home/srv/.config/syncthing"
"/home/srv/Sync"
];
}
else
null;