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

View file

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

View file

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