diff --git a/hosts/nixos/nfss/system.nix b/hosts/nixos/nfss/system.nix index 162fa6b..30d8870 100644 --- a/hosts/nixos/nfss/system.nix +++ b/hosts/nixos/nfss/system.nix @@ -90,10 +90,15 @@ # USB SSD mount fileSystems."/mnt/essd" = { device = "/dev/disk/by-id/usb-NVME_USB_3.2_0123456789ABC-0:0-part2"; - fsType = "exfat"; + fsType = "ext4"; options = [ "nofail" "x-systemd.device-timeout=5s" ]; }; + # Set ownership of mount point + systemd.tmpfiles.rules = [ + "d /mnt/essd 0755 yanlin users -" + ]; + # Host-specific packages environment.systemPackages = with pkgs; [ smartmontools @@ -147,6 +152,8 @@ user = "yanlin"; audiobookshelf.enable = true; deluge.enable = true; + sonarr.enable = true; + plex.enable = true; }; # Samba file sharing diff --git a/hosts/nixos/vps/proxy.nix b/hosts/nixos/vps/proxy.nix index 9087b4f..705d5db 100644 --- a/hosts/nixos/vps/proxy.nix +++ b/hosts/nixos/vps/proxy.nix @@ -27,6 +27,17 @@ }; }; + tv = { + rule = "Host(`tv.yanlincs.com`)"; + service = "tv"; + tls = { + certResolver = "cloudflare"; + domains = [{ + main = "*.yanlincs.com"; + }]; + }; + }; + }; services = { @@ -40,6 +51,14 @@ }; }; + tv = { + loadBalancer = { + servers = [{ + url = "http://nfss.yanlincs.com:32400"; + }]; + }; + }; + }; };