From 6790b2d923b61e4a18f8a494e3a3fea2f9d3bcdd Mon Sep 17 00:00:00 2001 From: 4DBug <4DBug@github.com> Date: Wed, 26 Aug 2026 15:44:08 -0500 Subject: [PATCH] bug tv --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 7 ++++--- modules/hosts/box.nix | 5 +++-- modules/services/bugtv.nix | 20 ++++++++++++++++---- modules/services/ports.nix | 1 + 5 files changed, 45 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index b28e58f..98b5cf3 100644 --- a/flake.lock +++ b/flake.lock @@ -125,6 +125,26 @@ "type": "gitlab" } }, + "bug-tv": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1787772860, + "narHash": "sha256-XTY+vJQGP8Z8/U2jjrbWMMCfn78kYlmTcoCYUMd3AHY=", + "ref": "refs/heads/main", + "rev": "ffab4949f334f5a7bc699bfba8592097e8fa5787", + "revCount": 2, + "type": "git", + "url": "https://git.bug.tools/bug/tv.git" + }, + "original": { + "type": "git", + "url": "https://git.bug.tools/bug/tv.git" + } + }, "catppuccin": { "inputs": { "nixpkgs": "nixpkgs" @@ -1303,6 +1323,7 @@ "inputs": { "aerothemeplasma": "aerothemeplasma", "auto-cpufreq": "auto-cpufreq", + "bug-tv": "bug-tv", "catppuccin": "catppuccin", "catppuccin-userstyles-nix": "catppuccin-userstyles-nix", "copyparty": "copyparty", diff --git a/flake.nix b/flake.nix index c8338d2..1e9756d 100644 --- a/flake.nix +++ b/flake.nix @@ -99,8 +99,9 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - /* - bugtv.url = "g" - */ + bug-tv = { + url = "git+https://git.bug.tools/bug/tv.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; } diff --git a/modules/hosts/box.nix b/modules/hosts/box.nix index 30a8600..ea54747 100644 --- a/modules/hosts/box.nix +++ b/modules/hosts/box.nix @@ -12,8 +12,9 @@ invidious mailserver # matrix - redlib - # sish + redlib + bugtv + # sish vscode-server gitea # omnisearch diff --git a/modules/services/bugtv.nix b/modules/services/bugtv.nix index d65e593..7e6a0d4 100644 --- a/modules/services/bugtv.nix +++ b/modules/services/bugtv.nix @@ -1,7 +1,19 @@ -{ +{ inputs, ... }: { den.aspects.bugtv = { - nixos = { - + nixos = { pkgs, config, ... }: { + imports = [ inputs.bug-tv.nixosModules.default ]; + + den.tunnels = [ "api.tv" ]; + + services."bug-tv" = { + enable = true; + + package = inputs.bug-tv.packages.${pkgs.system}.default; + port = 8789; + tmdbApiKey = "ac014b130a8e6344c91dff4e68b18d47"; + providers = [ "cineby" ]; + timeoutMs = 30000; + }; }; }; -} \ No newline at end of file +} diff --git a/modules/services/ports.nix b/modules/services/ports.nix index 8c01362..c53cefc 100644 --- a/modules/services/ports.nix +++ b/modules/services/ports.nix @@ -19,6 +19,7 @@ mail = 8088; email = 8088; llama = 8080; + "api.tv" = 8789; }; }; }