Skip to content

Commit

Permalink
modules (calibre-web): Init and enable on srv-test-2
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Feb 19, 2025
1 parent 127982c commit e260a07
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions modules/calibre-web/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
config,
lib,
...
}: let
cfg = config.my.modules.calibre-web;
in {
options.my.modules.calibre-web = {
enable = lib.mkEnableOption "calibre-web";
};

config = lib.mkIf cfg.enable {
services.calibre-web = {
enable = true;
listen.ip = "0.0.0.0";
options = {
enableBookConversion = true;
enableBookUploading = true;
enableKepubify = true;
};
};

my.modules.https-proxy = {
configurations = [
{
fqdn = "books.${config.my.host.name}.ritter.family";
aliases = ["books.ritter.family"];
target = "http://localhost:8083";
}
];
};
};
}
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ in {
./acme
./adguard
./app-sync
./calibre-web
./comin
./disko
./fonts
Expand Down
1 change: 1 addition & 0 deletions systems/x86_64-linux/srv-test-2/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
enable = true;
stage = "test";
};
calibre-web.enable = true;
tailscale.enable = true;
vaultwarden.enable = true;
};
Expand Down

0 comments on commit e260a07

Please sign in to comment.