nix-da/hosts/shan/calibre-web.nix
nydragon 5e4969dc7b
Some checks failed
/ test (push) Failing after 9m55s
fix: require mount for calibre and navidrome
2025-03-10 13:52:56 +01:00

24 lines
477 B
Nix

{
config = {
services.calibre-web = {
enable = true;
options = {
enableBookUploading = true;
calibreLibrary = "/mnt/books";
};
};
systemd.services.calibre-web = {
after = [ "mnt-books.mount" ];
requires = [ "mnt-books.mount" ];
};
fileSystems."/mnt/books" = {
device = "192.168.178.21:/mnt/Fort/data/books";
fsType = "nfs";
options = [
"x-systemd.automount"
];
};
};
}