mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
38 lines
741 B
Nix
38 lines
741 B
Nix
{
|
|
config,
|
|
inputs,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
stable = import inputs.nixpkgs-calibre {
|
|
system = "x86_64-linux";
|
|
};
|
|
in
|
|
{
|
|
services.calibre-web = {
|
|
package = stable.calibre-web;
|
|
enable = true;
|
|
# dataDir = "${xlib.dirs.services-mnt-folder}/calibre-web";
|
|
options = {
|
|
calibreLibrary = "${xlib.dirs.services-mnt-folder}/calibre-web-library";
|
|
enableBookUploading = true;
|
|
enableKepubify = true;
|
|
enableBookConversion = false;
|
|
};
|
|
listen.ip = "0.0.0.0";
|
|
listen.port = 8083;
|
|
openFirewall = true;
|
|
};
|
|
|
|
fileSystems."/var/lib/calibre-web" = {
|
|
device = "${xlib.dirs.services-mnt-folder}/calibre-web";
|
|
fsType = "none";
|
|
options = [
|
|
"bind"
|
|
"nofail"
|
|
];
|
|
};
|
|
}
|