calibre-web now does kobo sync

This commit is contained in:
Anish Lakhwara 2022-12-10 22:09:21 +10:00
parent 0313c9365a
commit 9f6a184d17
5 changed files with 26 additions and 15 deletions

View file

@ -90,6 +90,7 @@
nur.overlay nur.overlay
unstableOverlay unstableOverlay
self.overlays.additions self.overlays.additions
self.overlays.modifications
]; ];
}); });
@ -247,7 +248,6 @@
}; };
helix = { helix = {
hostname = "git.sealight.xyz"; hostname = "git.sealight.xyz";
autoRollback = false;
profiles.system = { profiles.system = {
user = "root"; user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix; path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix;

View file

@ -42,7 +42,7 @@
"/var/backup/postgresql" # wallabag "/var/backup/postgresql" # wallabag
"/var/lib/radicale" # radicale "/var/lib/radicale" # radicale
"/home/anish/usr/drawing" # syncthing "/home/anish/usr/drawing" # syncthing
"/home/anish/usr/nonfiction" # syncthing # "/home/anish/usr/nonfiction" # syncthing
"/home/anish/usr/finance" # beancount "/home/anish/usr/finance" # beancount
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul "/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
]; ];

View file

@ -1,17 +1,22 @@
{ pkgs, ... }:
{ {
# Unnecessary at this stage services.calibre-web = {
#services.calibre-web = { enable = true;
# enable = true; listen.port = 8083;
# listen.port = 8083; openFirewall = true;
# openFirewall = true; # Bug in the module puts this in quotes in the systemd file
# # Bug in the module puts this in quotes in the systemd file user = "calibre-server";
# # user = calibre; group = "calibre-server";
# # group = calibre; options = {
# options = { calibreLibrary = "/data/books";
# calibreLibrary = "/data/books"; enableBookUploading = true;
# enableBookUploading = true; };
# }; };
#};
users.users.calibre-server = {
isSystemUser = true;
group = "calibre-server";
};
services.calibre-server = { services.calibre-server = {
enable = true; enable = true;
@ -21,6 +26,8 @@
# group = calibre; # group = calibre;
}; };
environment.systemPackages = with pkgs; [ calibre ];
services.nginx.virtualHosts."books.mossnet.lan" = { services.nginx.virtualHosts."books.mossnet.lan" = {
enableACME = false; enableACME = false;
forceSSL = false; forceSSL = false;

View file

@ -10,6 +10,7 @@
192.168.1.240 task.mossnet.lan 192.168.1.240 task.mossnet.lan
192.168.1.240 fin.mossnet.lan 192.168.1.240 fin.mossnet.lan
192.168.1.240 paper.mossnet.lan 192.168.1.240 paper.mossnet.lan
192.168.1.240 books.mossnet.lan
''; '';
# 10.0.69.4 mossnet.lan # 10.0.69.4 mossnet.lan
# 10.0.69.4 links.mossnet.lan # 10.0.69.4 links.mossnet.lan

View file

@ -7,6 +7,9 @@
# You can change versions, add patches, set compilation flags, anything really. # You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays # https://nixos.wiki/wiki/Overlays
modifications = final: prev: { modifications = final: prev: {
calibre-web = prev.calibre-web.overrideAttrs (prevAttrs: rec {
propagatedBuildInputs = prevAttrs.propagatedBuildInputs ++ [ final.python3.pkgs.jsonschema ]; # allow kobo sync stuff
});
# example = prev.example.overrideAttrs (oldAttrs: rec { # example = prev.example.overrideAttrs (oldAttrs: rec {
# ... # ...
# }); # });