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 , grasp
, tidalcycles , tidalcycles
, neovim-nightly , neovim-nightly
, rust-overlay
, eww , eww
, ... , ...
} @ inputs: } @ inputs:
@ -90,6 +91,7 @@
./pkgs/default.nix ./pkgs/default.nix
tidalcycles.overlays.default tidalcycles.overlays.default
neovim-nightly.overlay neovim-nightly.overlay
rust-overlay.overlay
eww.overlays.default eww.overlays.default
]; ];
}; };

View file

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