From 0efd6295a9b998646aab0a25e46dca0cc4245ce0 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 10 Jul 2025 10:21:23 -0400 Subject: [PATCH] bring back jelly --- .vscode/extensions.json | 1 - configurations/nixos/pureintent/default.nix | 1 + .../nixos/pureintent/home-media.nix | 66 +++++++++++++------ 3 files changed, 46 insertions(+), 22 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index e770e2e..1c1827f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,7 +3,6 @@ "bbenoist.nix", "b4dm4n.nixpkgs-fmt", "jnoortheen.nix-ide", - "mattn.lisp", "mkhl.direnv", "kdl-org.kdl" ] diff --git a/configurations/nixos/pureintent/default.nix b/configurations/nixos/pureintent/default.nix index 339a9f4..7cb62b7 100644 --- a/configurations/nixos/pureintent/default.nix +++ b/configurations/nixos/pureintent/default.nix @@ -11,6 +11,7 @@ in imports = [ self.nixosModules.default ./configuration.nix + ./home-media.nix (self + /modules/nixos/linux/lxd.nix) (self + /modules/nixos/shared/github-runner.nix) ]; diff --git a/configurations/nixos/pureintent/home-media.nix b/configurations/nixos/pureintent/home-media.nix index eb8e7cc..28229af 100644 --- a/configurations/nixos/pureintent/home-media.nix +++ b/configurations/nixos/pureintent/home-media.nix @@ -14,34 +14,58 @@ vlc ]; - /* Not using this - services.transmission = { + services.nginx = { enable = true; - group = "jellyfin"; - openRPCPort = true; - settings = { + recommendedProxySettings = true; + recommendedTlsSettings = true; + virtualHosts = { + "pureintent" = { + locations = { + # Return index.html with likns to other two sites + "/browse" = { + extraConfig = '' + default_type text/html; + ''; + return = "200 ''"; + }; + # Jellyfin + "/" = { + proxyPass = "http://localhost:8096"; + proxyWebsockets = true; + }; + }; + }; + }; + }; + + /* Not using this + services.transmission = { + enable = true; + group = "jellyfin"; + openRPCPort = true; + settings = { rpc-bind-address = "localhost"; rpc-whitelist-enabled = false; # ACL managed through Tailscale rpc-host-whitelist = "pureintent pureintent.rooster-blues.ts.net"; download-dir = "/Self/Downloads"; trash-original-torrent-files = true; - }; - }; - */ + }; + }; + */ /* Disabled, because jellyfin has issues - age.secrets = { - "pureintent-basic-auth.age" = { + age.secrets = { + "pureintent-basic-auth.age" = { file = self + /secrets/pureintent-basic-auth.age; owner = "nginx"; - }; - }; - services.nginx = { - enable = true; - recommendedProxySettings = true; - recommendedTlsSettings = true; - # virtualHosts."pureintent.rooster-blues.ts.net" = { - virtualHosts = rec { + }; + }; + services.nginx = { + enable = true; + recommendedProxySettings = true; + recommendedTlsSettings = true; + # virtualHosts."pureintent.rooster-blues.ts.net" = { + virtualHosts = rec { "pureintent.rooster-blues.ts.net" = pureintent; "pureintent" = { locations = { @@ -66,7 +90,7 @@ }; }; }; - }; - }; - */ + }; + }; + */ }