From 5410afb45bb1ee30985b0b2b5d3cc41b1e5e64a3 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 15 Oct 2022 15:29:21 +0000 Subject: [PATCH] switch to /var/lib for calibre-web --- modules/services/calibre.nix | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/modules/services/calibre.nix b/modules/services/calibre.nix index 21c9707..d43b9b5 100644 --- a/modules/services/calibre.nix +++ b/modules/services/calibre.nix @@ -1,11 +1,4 @@ -{ config, pkgs, lib, ... }: - -let - - # Must set group owner to calibre-web - libraryPath = "/var/books"; - -in { +{ config, pkgs, lib, ... }: { imports = [ ./caddy.nix ]; @@ -22,7 +15,6 @@ in { enable = true; openFirewall = true; options = { - calibreLibrary = libraryPath; reverseProxyAuth.enable = false; enableBookConversion = true; enableBookUploading = true; @@ -47,22 +39,6 @@ in { }]; }]; - # Create directory and set permissions - systemd.services.calibre-library = { - requiredBy = [ "calibre-web.service" ]; - before = [ "calibre-web.service" ]; - serviceConfig = { - Type = "oneshot"; - User = "root"; - }; - script = '' - mkdir --parents ${libraryPath} - chown -R calibre-web:calibre-web ${libraryPath} - chmod 0775 ${libraryPath} - chmod -R 0640 ${libraryPath}/* - ''; - }; - }; }