fix: calibre group options fix

This commit is contained in:
2025-11-01 23:26:28 +01:00
parent 323d7e4742
commit 68ec2cd6b2

View File

@@ -13,22 +13,22 @@ in {
default = "phundrak"; default = "phundrak";
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "users"; default = "users";
}; };
dataDir = mkOption { dataDir = mkOption {
type = types.string; type = types.str;
example = "/tank/calibre/conf"; example = "/tank/calibre/conf";
default = "/tank/calibre/conf"; default = "/tank/calibre/conf";
}; };
library = mkOption { library = mkOption {
type = types.string; type = types.str;
example = "/tank/calibre/library"; example = "/tank/calibre/library";
default = "/tank/calibre/library"; default = "/tank/calibre/library";
}; };
}; };
config.services.calibre-web = mkIf cfg.enable { config.services.calibre-web = mkIf cfg.enable {
inherit (cfg) enable user group dataDir; inherit (cfg) enable user dataDir group;
options = { options = {
calibreLibrary = cfg.library; calibreLibrary = cfg.library;
enableBookConversion = true; enableBookConversion = true;