From 1099ae5f77012ab2a739890e87eeb0b763bfb89b Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 9 Jan 2026 17:44:59 +0100 Subject: [PATCH] add deluge to nfss --- hosts/nixos/nfss/system.nix | 7 +++++++ hosts/nixos/vps/proxy.nix | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/hosts/nixos/nfss/system.nix b/hosts/nixos/nfss/system.nix index 4f07007..7615210 100644 --- a/hosts/nixos/nfss/system.nix +++ b/hosts/nixos/nfss/system.nix @@ -4,6 +4,7 @@ ../system-default.nix ../../../modules/tailscale.nix ../../../modules/login-display.nix + ../../../modules/media-server.nix ]; # GRUB bootloader with ZFS support @@ -125,4 +126,10 @@ subnetRoutes = [ "10.1.1.0/24" ]; }; + # Media server services + services.media-server = { + user = "yanlin"; + deluge.enable = true; + }; + } diff --git a/hosts/nixos/vps/proxy.nix b/hosts/nixos/vps/proxy.nix index fe70100..ea12c4f 100644 --- a/hosts/nixos/vps/proxy.nix +++ b/hosts/nixos/vps/proxy.nix @@ -28,6 +28,17 @@ }; }; + deluge = { + rule = "Host(`deluge.yanlincs.com`)"; + service = "file"; + tls = { + certResolver = "cloudflare"; + domains = [{ + main = "*.yanlincs.com"; + }]; + }; + }; + }; services = { @@ -48,6 +59,14 @@ }; }; + deluge = { + loadBalancer = { + servers = [{ + url = "http://nfss.yanlincs.com:8112"; + }]; + }; + }; + }; };