nix-config/hosts/sisyphe/features/services/archivebox.nix
harry123 8a522c525c Refactor Nix configurations to update URLs from hypervirtual.world to rougebordeaux.xyz
- Updated flake.nix to change Alejandra and other inputs to follow the new repository structure.
- Modified uptime-kuma configurations to reflect the new domain for Caddy reverse proxy settings.
- Adjusted various multimedia services in Sisyphe to use the new domain for Caddy virtual hosts.
- Disabled the Sabnzbd service in Sisyphe and updated its Caddy configuration.
- Corrected multiple service configurations in Sisyphe to point to the new domain, including Grafana, Nextcloud, and Synapse Matrix.
- Ensured all references to hypervirtual.world are replaced with rougebordeaux.xyz across all relevant files.
2025-05-08 16:02:47 +02:00

32 lines
881 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
archivebox
nodejs_23
];
services.caddy.virtualHosts."archive.rougebordeaux.xyz".extraConfig = ''
reverse_proxy 15632
'';
systemd.services."archivebox-web" = {
enable = true;
description = "Runs the archivebox web UI";
preStart = ''
mkdir -p /srv/archivebox
chown archivebox:archivebox /srv/archivebox
if [ ! -f /srv/archivebox/index.sqlite3 ]; then
sudo -u archivebox ${pkgs.archivebox}/bin/archivebox init --path /srv/archivebox
fi
'';
serviceConfig = {
ExecStart = "${pkgs.archivebox}/bin/archivebox server 0.0.0.0:15632 --path /srv/archivebox";
Restart = "always";
User = "archivebox";
Group = "archivebox";
WorkingDirectory = "/var/lib/archivebox";
};
wantedBy = [ "multi-user.target" ];
};
}