diff --git a/modules/nixos/bundles/server.nix b/modules/nixos/bundles/server.nix index a084543..127e2c3 100644 --- a/modules/nixos/bundles/server.nix +++ b/modules/nixos/bundles/server.nix @@ -5,6 +5,7 @@ { imports = util.toImports ../features [ # keep-sorted start + "bazarr" "copyparty" "couchdb" "flaresolverr" diff --git a/modules/nixos/features/bazarr.nix b/modules/nixos/features/bazarr.nix new file mode 100644 index 0000000..c1ebae6 --- /dev/null +++ b/modules/nixos/features/bazarr.nix @@ -0,0 +1,19 @@ +let + port = 5017; +in +{ + services = { + bazarr = { + enable = true; + dataDir = "/srv/bazarr"; + group = "media"; + listenPort = port; + }; + + nginx.virtualHosts."bazarr.fi33.buzz" = { + forceSSL = true; + useACMEHost = "fi33.buzz"; + locations."/".proxyPass = "http://localhost:${toString port}"; + }; + }; +} diff --git a/modules/nixos/features/homepage-dashboard.nix b/modules/nixos/features/homepage-dashboard.nix index 4a2be45..bd2a28b 100644 --- a/modules/nixos/features/homepage-dashboard.nix +++ b/modules/nixos/features/homepage-dashboard.nix @@ -23,6 +23,7 @@ let secrets = [ # keep-sorted start + "bazarr" "immich" "jellyfin" "karakeep" @@ -98,6 +99,18 @@ in }; }; } + { + "Bazarr" = { + "description" = "Subtitle downloader and manager"; + "icon" = "bazarr.svg"; + "href" = "https://bazarr.fi33.buzz/"; + "widget" = { + "type" = "bazarr"; + "url" = "https://bazarr.fi33.buzz/"; + "key" = "@bazarr@"; + }; + }; + } { "Prowlarr" = { "description" = "Indexer management tool"; diff --git a/secrets/bazarr.age b/secrets/bazarr.age new file mode 100644 index 0000000..82d61ca --- /dev/null +++ b/secrets/bazarr.age @@ -0,0 +1,9 @@ +age-encryption.org/v1 +-> ssh-ed25519 qLT+DQ pNb65h8kPUdFi7vgKoENqFf9NuQAfegSAM+SVxoTdGQ +7pDfhxs55Q4HQetasY6tZX76aOleLTCTi3xEdCqPdFo +-> ssh-ed25519 7+xRyQ SiBuQH6fIUFidqFUIFfE9i0zJhuMAWYmDCeszOJLZlE +ASEBjHaAVrH6z/43Rfnh2P0REg7f0b53fqbLHD44P8g +-> ssh-ed25519 LtK9yQ F6FnS/nRerbt/tMCl48CMjyKwhgCI8ti40klovGXdGU +ksVfKN3xowiBhwzyS9DLdmVX1QLCo8hvNiNux0MkiXU +--- rMrNsQ0G/k0MAwDOBd9IYDb2Lc8N/RaGXIGKtm9FL1c +q 9o-dtB7v*i:.G/t),+/vCD}SX(} *4[~l \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index e52a32d..d13f6ed 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -15,6 +15,7 @@ let in { # keep-sorted start + "bazarr.age".publicKeys = users; "borgmatic-pg.age".publicKeys = users; "borgmatic.age".publicKeys = users; "copyparty-will.age".publicKeys = users;