add calibre-server working
This commit is contained in:
Anish L 2022-08-31 22:17:31 +10:00
parent b7c7678a0a
commit 4c7bc267c3
2 changed files with 10 additions and 4 deletions

View file

@ -67,6 +67,7 @@
, grasp
, tidalcycles
, neovim-nightly
, rust-overlay
, eww
, ...
} @ inputs:
@ -90,6 +91,7 @@
./pkgs/default.nix
tidalcycles.overlays.default
neovim-nightly.overlay
rust-overlay.overlay
eww.overlays.default
];
};

View file

@ -3,8 +3,9 @@
enable = true;
listen.port = 8083;
openFirewall = true;
user = "calibre";
group = "calibre";
# Bug in the module puts this in quotes in the systemd file
# user = calibre;
# group = calibre;
options = {
calibreLibrary = "/data/books";
enableBookUploading = true;
@ -14,8 +15,9 @@
services.calibre-server = {
enable = true;
libraries = [ "/data/books" ];
user = "calibre";
group = "calibre";
# Bug in the module puts this in quotes in the systemd file
# user = calibre;
# group = calibre;
};
services.nginx.virtualHosts."books.mossnet.lan" = {
@ -29,4 +31,6 @@
'';
};
};
networking.firewall.allowedTCPPorts = [ 8080 ];
}