diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-11-10 12:22:55 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-11-10 12:22:55 +0530 |
| commit | f5d51dba7341eadf04749f6a9703f83a5cde4390 (patch) | |
| tree | 6c6315a6b7bc7fe324c2c270e1fc31d4037f2a11 /modules/media | |
| parent | 2512c45176739a5776569ce84f1c6ecd3e46c93a (diff) | |
| download | homeserver-nixos-config-f5d51dba7341eadf04749f6a9703f83a5cde4390.tar.gz homeserver-nixos-config-f5d51dba7341eadf04749f6a9703f83a5cde4390.zip | |
Update + add books module disabled
Diffstat (limited to 'modules/media')
| -rw-r--r-- | modules/media/books.nix | 24 | ||||
| -rw-r--r-- | modules/media/default.nix | 1 | ||||
| -rw-r--r-- | modules/media/torrent.nix | 1 |
3 files changed, 26 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" + ]; + }; +} diff --git a/modules/media/default.nix b/modules/media/default.nix index 8417d0c..7925295 100644 --- a/modules/media/default.nix +++ b/modules/media/default.nix @@ -4,6 +4,7 @@ ./torrent.nix ./servarr.nix ./jellyfin.nix + # ./books.nix ]; systemd.tmpfiles.rules = [ diff --git a/modules/media/torrent.nix b/modules/media/torrent.nix index 3430882..68218af 100644 --- a/modules/media/torrent.nix +++ b/modules/media/torrent.nix @@ -11,6 +11,7 @@ services.transmission = { enable = true; group = settings.media.group; + package = pkgs.transmission_4; openRPCPort = true; settings = { "download-dir" = settings.media.downloadsDir; |
