From 4658b8392ebf5f5cc3bbe2bb4a1dca8b417704f0 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 1 Nov 2025 23:26:28 +0100 Subject: [PATCH] fix: change invalid types.string to types.str --- system/services/calibre.nix | 10 +++++----- system/services/jellyfin.nix | 6 +++--- system/services/plex.nix | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/system/services/calibre.nix b/system/services/calibre.nix index c1bfd5c..38fd978 100644 --- a/system/services/calibre.nix +++ b/system/services/calibre.nix @@ -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; diff --git a/system/services/jellyfin.nix b/system/services/jellyfin.nix index a3e4d7b..aabfcdd 100644 --- a/system/services/jellyfin.nix +++ b/system/services/jellyfin.nix @@ -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"; }; }; diff --git a/system/services/plex.nix b/system/services/plex.nix index 6bade38..b8269a8 100644 --- a/system/services/plex.nix +++ b/system/services/plex.nix @@ -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"; }; };