mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-29 01:07:24 -04:00
41 lines
795 B
Nix
41 lines
795 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.mkIf config.user.overseer.enable {
|
|
services.restic.backups.homebox = {
|
|
user = "root";
|
|
timerConfig = {
|
|
OnCalendar = "hourly";
|
|
Persistent = true;
|
|
};
|
|
paths = [
|
|
"/var/lib/homebox/data"
|
|
];
|
|
repositoryFile = config.sops.secrets."restic/url".path;
|
|
passwordFile = config.sops.secrets."restic/key".path;
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"homebox.wanderingcrow.net" = {
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:7745";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.homebox = {
|
|
enable = true;
|
|
settings = {
|
|
HBOX_OPTIONS_ALLOW_REGISTRATION = "true";
|
|
};
|
|
};
|
|
}
|