diff --git a/hosts/by-name/servo/services/calibre.nix b/hosts/by-name/servo/services/calibre.nix deleted file mode 100644 index 4dd92e0e8..000000000 --- a/hosts/by-name/servo/services/calibre.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ config, lib, ... }: - -let - cweb-cfg = config.services.calibre-web; - inherit (cweb-cfg) user group; - inherit (cweb-cfg.listen) ip port; - svc-dir = "/var/lib/${cweb-cfg.dataDir}"; -in -# XXX: disabled because of runtime errors like: -# > File "/nix/store/c7jqvx980nlg9xhxi065cba61r2ain9y-calibre-web-0.6.19/lib/python3.10/site-packages/calibreweb/cps/db.py", line 926, in speaking_language -# > languages = self.session.query(Languages) \ -# > AttributeError: 'NoneType' object has no attribute 'query' -lib.mkIf false -{ - sane.persist.sys.byStore.plaintext = [ - { inherit user group; mode = "0700"; path = svc-dir; method = "bind"; } - ]; - - services.calibre-web.enable = true; - services.calibre-web.listen.ip = "127.0.0.1"; - # XXX: externally populate `${svc-dir}/metadata.db` (once) from - # - # i don't know why you have to do this?? - # services.calibre-web.options.calibreLibrary = svc-dir; - - services.nginx.virtualHosts."calibre.uninsane.org" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://${ip}:${builtins.toString port}"; - }; - }; - sane.dns.zones."uninsane.org".inet.CNAME."calibre" = "native"; -} diff --git a/hosts/by-name/servo/services/default.nix b/hosts/by-name/servo/services/default.nix index b91bb28cb..a0ca90617 100644 --- a/hosts/by-name/servo/services/default.nix +++ b/hosts/by-name/servo/services/default.nix @@ -1,7 +1,6 @@ { ... }: { imports = [ - ./calibre.nix ./coturn.nix ./cryptocurrencies ./email