mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
decommissioning arch mirror
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
{ inputs, pkgs, ... }:
|
|
||||||
let
|
|
||||||
vars = import ./vars.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
users = {
|
|
||||||
users.arch-mirror = {
|
|
||||||
isSystemUser = true;
|
|
||||||
group = "arch-mirror";
|
|
||||||
};
|
|
||||||
groups.arch-mirror = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.arch_mirror = {
|
|
||||||
image = "ubuntu/apache2:latest";
|
|
||||||
volumes = [
|
|
||||||
"${../../common/docker_templates}/file_server/sites/:/etc/apache2/sites-enabled/"
|
|
||||||
"${vars.media_mirror}:/data"
|
|
||||||
];
|
|
||||||
ports = [ "800:80" ];
|
|
||||||
extraOptions = [ "--network=web" ];
|
|
||||||
autoStart = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.sync_mirror = {
|
|
||||||
requires = [ "network-online.target" ];
|
|
||||||
after = [ "network-online.target" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
description = "validates startup";
|
|
||||||
path = [ pkgs.rsync ];
|
|
||||||
serviceConfig = {
|
|
||||||
Environment = "MIRROR_DIR=${vars.media_mirror}/archlinux/";
|
|
||||||
Type = "simple";
|
|
||||||
User = "arch-mirror";
|
|
||||||
Group = "arch-mirror";
|
|
||||||
ExecStart = "${inputs.system_tools.packages.x86_64-linux.default}/bin/sync_mirror";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -8,7 +8,6 @@ in
|
|||||||
../../common/optional/ssh_decrypt.nix
|
../../common/optional/ssh_decrypt.nix
|
||||||
../../common/optional/syncthing_base.nix
|
../../common/optional/syncthing_base.nix
|
||||||
../../common/optional/zerotier.nix
|
../../common/optional/zerotier.nix
|
||||||
./arch_mirror.nix
|
|
||||||
./docker
|
./docker
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./home_assistant.nix
|
./home_assistant.nix
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ frontend ContentSwitching
|
|||||||
acl host_cache hdr(host) -i cache.tmmworkshop.com
|
acl host_cache hdr(host) -i cache.tmmworkshop.com
|
||||||
acl host_filebrowser hdr(host) -i filebrowser.tmmworkshop.com
|
acl host_filebrowser hdr(host) -i filebrowser.tmmworkshop.com
|
||||||
acl host_grafana hdr(host) -i grafana.tmmworkshop.com
|
acl host_grafana hdr(host) -i grafana.tmmworkshop.com
|
||||||
acl host_mirror hdr(host) -i mirror.tmmworkshop.com
|
|
||||||
acl host_photoprism hdr(host) -i photoprism.tmmworkshop.com
|
acl host_photoprism hdr(host) -i photoprism.tmmworkshop.com
|
||||||
acl host_uptime_kuma hdr(host) -i uptimekuma-jeeves.tmmworkshop.com
|
acl host_uptime_kuma hdr(host) -i uptimekuma-jeeves.tmmworkshop.com
|
||||||
|
|
||||||
@@ -37,7 +36,6 @@ frontend ContentSwitching
|
|||||||
use_backend cache_nodes if host_cache
|
use_backend cache_nodes if host_cache
|
||||||
use_backend filebrowser_nodes if host_filebrowser
|
use_backend filebrowser_nodes if host_filebrowser
|
||||||
use_backend grafana_nodes if host_grafana
|
use_backend grafana_nodes if host_grafana
|
||||||
use_backend mirror_nodes if host_mirror
|
|
||||||
use_backend photoprism_nodes if host_photoprism
|
use_backend photoprism_nodes if host_photoprism
|
||||||
use_backend uptime_kuma_nodes if host_uptime_kuma
|
use_backend uptime_kuma_nodes if host_uptime_kuma
|
||||||
|
|
||||||
@@ -57,10 +55,6 @@ backend filebrowser_nodes
|
|||||||
mode http
|
mode http
|
||||||
server server filebrowser:8080
|
server server filebrowser:8080
|
||||||
|
|
||||||
backend mirror_nodes
|
|
||||||
mode http
|
|
||||||
server server arch_mirror:80
|
|
||||||
|
|
||||||
backend photoprism_nodes
|
backend photoprism_nodes
|
||||||
mode http
|
mode http
|
||||||
server server photoprism:2342
|
server server photoprism:2342
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ in
|
|||||||
"${./haproxy.cfg}:/usr/local/etc/haproxy/haproxy.cfg"
|
"${./haproxy.cfg}:/usr/local/etc/haproxy/haproxy.cfg"
|
||||||
];
|
];
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
"arch_mirror"
|
|
||||||
"audiobookshelf"
|
"audiobookshelf"
|
||||||
"filebrowser"
|
"filebrowser"
|
||||||
"grafana"
|
"grafana"
|
||||||
|
|||||||
Reference in New Issue
Block a user