fix: change invalid types.string to types.str

This commit is contained in:
Lucien Cartier-Tilet 2025-11-01 23:26:28 +01:00
parent a210ae58e6
commit 969c59279d
3 changed files with 11 additions and 11 deletions

View File

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

View File

@ -9,16 +9,16 @@ in {
options.mySystem.services.jellyfin = {
enable = mkEnableOption "Enable Jellyfin";
dataDir = mkOption {
type = types.string;
type = types.str;
default = "/tank/jellyfin/data";
example = "/tank/jellyfin/data";
};
user = mkOption {
type = types.string;
type = types.str;
default = "phundrak";
};
group = mkOption {
type = types.string;
type = types.str;
default = "users";
};
};

View File

@ -9,17 +9,17 @@ in {
options.mySystem.services.plex = {
enable = mkEnableOption "Enable Plex";
group = mkOption {
type = types.string;
type = types.str;
default = "users";
example = "users";
description = "Group under which Plex runs";
};
dataDir = mkOption {
type = types.string;
type = types.str;
example = "/tank/plex-config";
};
user = mkOption {
type = types.string;
type = types.str;
default = "phundrak";
};
};