From 63095b3690a6d0921f331ed3ddc0ef6f44071369 Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Wed, 23 Oct 2024 20:16:46 -0400 Subject: [PATCH] lazy librarian --- nixos-configurations/zeus.nix | 2 ++ nixos-modules/docker-lazylibrarian.nix | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 nixos-modules/docker-lazylibrarian.nix diff --git a/nixos-configurations/zeus.nix b/nixos-configurations/zeus.nix index 3811898..e7ff6fe 100644 --- a/nixos-configurations/zeus.nix +++ b/nixos-configurations/zeus.nix @@ -23,12 +23,14 @@ in ezModules.networkd-base ezModules.smartd ezModules.plymouth + ezModules.docker-calibre ezModules.docker-calibre-web ezModules.docker-dind ezModules.docker-flaresolverr ezModules.docker-forgejo ezModules.docker-homeassistant ezModules.docker-jellyfin + ezModules.docker-lazylibrarian ezModules.docker-postgres ezModules.docker-prowlarr ezModules.docker-proxy diff --git a/nixos-modules/docker-lazylibrarian.nix b/nixos-modules/docker-lazylibrarian.nix new file mode 100644 index 0000000..b01030b --- /dev/null +++ b/nixos-modules/docker-lazylibrarian.nix @@ -0,0 +1,25 @@ + +{ pkgs, ... }: +{ + virtualisation = { + containers.enable = true; + podman.enable = true; + oci-containers.containers = { + lazylibrarian = { + image = "linuxserver/lazylibrarian:latest"; + volumes = [ + "lazylibrarian-config:/config" + "/video-data:/data" + ]; + environment.TZ = "America/New_York"; + labels = { + swag = "enable"; + }; + extraOptions = [ + "--network=www" + "--pull=newer" + ]; + }; + }; + }; +}