Calibre: Add module and enable for both hermes and bebop
This commit is contained in:
parent
6311aff07d
commit
37bec4cb64
2 changed files with 28 additions and 0 deletions
|
@ -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
26
modules/calibre.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in a new issue