From 4e57c0bb2e3d89df795091bed82fcea426d3b822 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 19 Feb 2025 16:50:28 +0100 Subject: [PATCH] hosts (srv-prod-2): Enable calibre-web --- modules/adguard/default.nix | 4 ++++ modules/homepage/default.nix | 12 ++++++++++++ systems/aarch64-linux/directions/configuration.nix | 4 ++++ systems/x86_64-linux/srv-prod-2/configuration.nix | 5 +++++ systems/x86_64-linux/srv-test-2/configuration.nix | 5 +++++ 5 files changed, 30 insertions(+) diff --git a/modules/adguard/default.nix b/modules/adguard/default.nix index 28d9a79..492d269 100644 --- a/modules/adguard/default.nix +++ b/modules/adguard/default.nix @@ -127,6 +127,10 @@ in { domain = "adguard.ritter.family"; answer = config.my.homelab.directions.ip; } + { + domain = "books.ritter.family"; + answer = config.my.homelab.directions.ip; + } { domain = "collabora.ritter.family"; answer = config.my.homelab.directions.ip; diff --git a/modules/homepage/default.nix b/modules/homepage/default.nix index adaccf5..2531514 100644 --- a/modules/homepage/default.nix +++ b/modules/homepage/default.nix @@ -36,6 +36,7 @@ in { }; } ]; + # see https://gethomepage.dev/configs/services/#icons for how to set icons services = [ { "Office" = [ @@ -55,6 +56,17 @@ in { } ]; } + { + "Media" = [ + { + "Calibre Web" = { + description = "App for browsing, reading and downloading eBooks"; + href = "https://books.ritter.family"; + icon = "calibre-web.svg"; + }; + } + ]; + } { "Infrastructure" = [ { diff --git a/systems/aarch64-linux/directions/configuration.nix b/systems/aarch64-linux/directions/configuration.nix index 941ce9f..834d7a9 100644 --- a/systems/aarch64-linux/directions/configuration.nix +++ b/systems/aarch64-linux/directions/configuration.nix @@ -19,6 +19,10 @@ https-proxy = { enable = true; configurations = [ + { + fqdn = "books.ritter.family"; + target = "https://books.srv-prod-2.ritter.family"; + } { fqdn = "collabora.ritter.family"; target = "https://collabora.srv-prod-2.ritter.family"; diff --git a/systems/x86_64-linux/srv-prod-2/configuration.nix b/systems/x86_64-linux/srv-prod-2/configuration.nix index 6e90d2b..53b5273 100644 --- a/systems/x86_64-linux/srv-prod-2/configuration.nix +++ b/systems/x86_64-linux/srv-prod-2/configuration.nix @@ -15,6 +15,7 @@ storageDisk = "/dev/sdb"; }; git-server.enable = true; + calibre-web.enable = true; nextcloud = { enable = true; stage = "production"; @@ -36,6 +37,10 @@ }; }; users.users = { + calibre-web = { + openssh.authorizedKeys.keyFiles = [../srv-test-2/ssh_srv-test-2_ed25519_key.pub]; + useDefaultShell = true; + }; nextcloud = { openssh.authorizedKeys.keyFiles = [../srv-test-2/ssh_srv-test-2_ed25519_key.pub]; useDefaultShell = true; diff --git a/systems/x86_64-linux/srv-test-2/configuration.nix b/systems/x86_64-linux/srv-test-2/configuration.nix index ae51924..c8d1ce7 100644 --- a/systems/x86_64-linux/srv-test-2/configuration.nix +++ b/systems/x86_64-linux/srv-test-2/configuration.nix @@ -22,6 +22,11 @@ host = config.my.homelab.srv-prod-2.ip; dataDir = "/srv/git"; } + { + serviceName = "calibre-web"; + host = config.my.homelab.srv-prod-2.ip; + dataDir = "/var/lib/calibre-library"; + } { serviceName = "nextcloud"; host = config.my.homelab.srv-prod-2.ip;