Skip to content

Commit

Permalink
hosts (srv-prod-2): Enable calibre-web
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Feb 19, 2025
1 parent e260a07 commit 4e57c0b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/adguard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 12 additions & 0 deletions modules/homepage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ in {
};
}
];
# see https://gethomepage.dev/configs/services/#icons for how to set icons
services = [
{
"Office" = [
Expand All @@ -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" = [
{
Expand Down
4 changes: 4 additions & 0 deletions systems/aarch64-linux/directions/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
5 changes: 5 additions & 0 deletions systems/x86_64-linux/srv-prod-2/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
storageDisk = "/dev/sdb";
};
git-server.enable = true;
calibre-web.enable = true;
nextcloud = {
enable = true;
stage = "production";
Expand All @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions systems/x86_64-linux/srv-test-2/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e57c0b

Please sign in to comment.