Calibre: Add module and enable for both hermes and bebop

This commit is contained in:
Payas Relekar 2023-05-18 22:36:14 +05:30
parent 6311aff07d
commit 37bec4cb64
2 changed files with 28 additions and 0 deletions

View file

@ -57,6 +57,7 @@
./modules/fish.nix
./modules/users.nix
./modules/fonts.nix
./modules/calibre.nix
# Host-specific config
./hosts/hermes/configuration.nix
@ -89,6 +90,7 @@
# Modules and module config
./modules/fish.nix
./modules/monitoring/monitoring.nix
./modules/calibre.nix
# Host-specific config
nixos-hardware.nixosModules.raspberry-pi-4

26
modules/calibre.nix Normal file
View file

@ -0,0 +1,26 @@
{ ... }:
let payas = "payas";
in
{
services = {
calibre-server = {
enable = true;
user = payas;
libraries = [ "/home/payas/org/books/" ];
};
calibre-web = {
enable = true;
user = "payas";
openFirewall = true;
listen = {
port = 8083;
ip = "::1";
};
options = {
enableBookUploading = true;
enableBookConversion = true;
};
};
};
}