fix: change invalid types.string to types.str
This commit is contained in:
parent
e65c27a81f
commit
4658b8392e
@ -9,26 +9,26 @@ in {
|
|||||||
options.mySystem.services.calibre = {
|
options.mySystem.services.calibre = {
|
||||||
enable = mkEnableOption "Enable Calibre Web";
|
enable = mkEnableOption "Enable Calibre Web";
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
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;
|
||||||
|
|||||||
@ -9,16 +9,16 @@ in {
|
|||||||
options.mySystem.services.jellyfin = {
|
options.mySystem.services.jellyfin = {
|
||||||
enable = mkEnableOption "Enable Jellyfin";
|
enable = mkEnableOption "Enable Jellyfin";
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "/tank/jellyfin/data";
|
default = "/tank/jellyfin/data";
|
||||||
example = "/tank/jellyfin/data";
|
example = "/tank/jellyfin/data";
|
||||||
};
|
};
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "phundrak";
|
default = "phundrak";
|
||||||
};
|
};
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "users";
|
default = "users";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -9,17 +9,17 @@ in {
|
|||||||
options.mySystem.services.plex = {
|
options.mySystem.services.plex = {
|
||||||
enable = mkEnableOption "Enable Plex";
|
enable = mkEnableOption "Enable Plex";
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "users";
|
default = "users";
|
||||||
example = "users";
|
example = "users";
|
||||||
description = "Group under which Plex runs";
|
description = "Group under which Plex runs";
|
||||||
};
|
};
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
example = "/tank/plex-config";
|
example = "/tank/plex-config";
|
||||||
};
|
};
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "phundrak";
|
default = "phundrak";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user