aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/dashboard/default.nix1
-rw-r--r--modules/dashboard/links.nix14
-rw-r--r--modules/media/books.nix38
-rw-r--r--modules/media/servarr.nix9
-rw-r--r--modules/network/default.nix3
5 files changed, 11 insertions, 54 deletions
diff --git a/modules/dashboard/default.nix b/modules/dashboard/default.nix
index 4dd3ef0..8e141ed 100644
--- a/modules/dashboard/default.nix
+++ b/modules/dashboard/default.nix
@@ -18,7 +18,6 @@ in
openFirewall = true;
port = settings.network.ports.dashboard;
title = "Bacchus Dashboard";
- # embedLink = settings.grafana.dashboardEmbedLink;
links = links;
};
}
diff --git a/modules/dashboard/links.nix b/modules/dashboard/links.nix
index 0232a7f..df130a4 100644
--- a/modules/dashboard/links.nix
+++ b/modules/dashboard/links.nix
@@ -59,13 +59,6 @@ in [
altUrl = "http://${host}:${toString ports.ntfy}";
color = "#2dc9b5";
}
- # {
- # title = "Grafana";
- # key = "g";
- # url = "http://grafana.local";
- # altUrl = "http://${host}:${toString ports.grafana}";
- # color = "#f05a28";
- # }
{
title = "Send";
key = "f";
@@ -80,11 +73,4 @@ in [
altUrl = "http://${host}:${toString ports.yarr}";
color = "#475569";
}
- # {
- # title = "Lazy Librarian";
- # key = "b";
- # url = "http://librarian.local";
- # altUrl = "http://${host}:${toString ports.lazylibrarian}";
- # color = "#55a4db";
- # }
]
diff --git a/modules/media/books.nix b/modules/media/books.nix
index 3fb2cb5..92af758 100644
--- a/modules/media/books.nix
+++ b/modules/media/books.nix
@@ -1,32 +1,14 @@
{ settings, pkgs, ... }:
{
- imports = [
- # ../../services/lazylibrarian/default.nix
- ];
+ # NOTE: Run `head -c 64 /dev/urandom | base64 --wrap=0 > /var/lib/kavita-token`
+ services.kavita = {
+ enable = true;
+ tokenKeyFile = "/var/lib/kavita-token";
+ user = "kavita"; # TODO: fix permissions
+ settings = {
+ Port = settings.network.ports.library;
+ };
+ };
- # systemd.tmpfiles.rules = [
- # "d ${settings.media.booksDir} 0770 - ${settings.media.group} - -"
- # ];
-
- # services.lazylibrarian = {
- # enable = true;
- # };
-
- # virtualisation.oci-containers.containers.lazy-librarian = {
- # image = "linuxserver/lazylibrarian";
- # # user = "lazylibrarian:${settings.media.group}";
- # imageFile = pkgs.dockerTools.pullImage {
- # imageName = "linuxserver/lazylibrarian";
- # finalImageTag = "version-68d7f93c";
- # imageDigest = "sha256:5d0c935283e5393ff57fb52e88660ccc596c170cc6f68c58045cd2c792108fdd";
- # sha256 = "sha256-jpdOJhf02Nbw/yRjEzTw+unZb7Ou+Lh9kPB/0oqHYV4=";
- # };
- # extraOptions = ["--network=host"];
- # ports = ["${toString settings.network.ports.lazylibrarian}:5299"];
- # volumes = [
- # "${settings.media.booksDir}:/books"
- # "${settings.media.downloadsDir}:/downloads"
- # "/var/lib/lazylibrarian:/config"
- # ];
- # };
+ networking.firewall.allowedTCPPorts = [settings.network.ports.library];
}
diff --git a/modules/media/servarr.nix b/modules/media/servarr.nix
index 2e6c273..fa705d1 100644
--- a/modules/media/servarr.nix
+++ b/modules/media/servarr.nix
@@ -26,15 +26,6 @@
};
};
- # services.lidarr = {
- # enable = true;
- # openFirewall = true;
- # group = settings.media.group;
- # settings = {
- # server.port = settings.network.ports.lidarr;
- # };
- # };
-
services.prowlarr = {
enable = true;
openFirewall = true;
diff --git a/modules/network/default.nix b/modules/network/default.nix
index de349e6..0234686 100644
--- a/modules/network/default.nix
+++ b/modules/network/default.nix
@@ -29,14 +29,13 @@ in
"syncthing.local" = { inherit host; port = ports.syncthing; };
# "lidarr.local" = { inherit host; port = ports.lidarr; };
"ntfy.local" = { inherit host; port = ports.ntfy; };
- "grafana.local" = { inherit host; port = ports.grafana; extraNginxOptions.recommendedProxySettings = true; };
"send.local" = { inherit host; port = ports.send; };
"photos.local" = { inherit host; port = ports.immich; };
"news.local" = { inherit host; port = ports.yarr; };
- # "librarian.local" = { inherit host; port = ports.lazylibrarian; };
"paperless.local" = { inherit host; port = ports.paperless; configureNginx = true; };
"calendar.local" = { inherit host; port = ports.caldav; };
"search.local" = { inherit host; port = ports.search; };
+ "library.local" = { inherit host; port = ports.library; };
};
};