aboutsummaryrefslogtreecommitdiff
path: root/modules/media/books.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-11-10 12:22:55 +0530
committerAkshay Nair <phenax5@gmail.com>2025-11-10 12:22:55 +0530
commitf5d51dba7341eadf04749f6a9703f83a5cde4390 (patch)
tree6c6315a6b7bc7fe324c2c270e1fc31d4037f2a11 /modules/media/books.nix
parent2512c45176739a5776569ce84f1c6ecd3e46c93a (diff)
downloadhomeserver-nixos-config-f5d51dba7341eadf04749f6a9703f83a5cde4390.tar.gz
homeserver-nixos-config-f5d51dba7341eadf04749f6a9703f83a5cde4390.zip
Update + add books module disabled
Diffstat (limited to 'modules/media/books.nix')
-rw-r--r--modules/media/books.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/media/books.nix b/modules/media/books.nix
new file mode 100644
index 0000000..89aacdd
--- /dev/null
+++ b/modules/media/books.nix
@@ -0,0 +1,24 @@
+{ settings, pkgs, ... }:
+{
+ systemd.tmpfiles.rules = [
+ "d ${settings.media.booksDir} 0770 - ${settings.media.group} - -"
+ ];
+
+ 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"
+ ];
+ };
+}