diff --git a/modules/common/default.nix b/modules/common/default.nix index 0ab95b2..455d3b9 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -77,6 +77,10 @@ default = [ ]; }; hostnames = { + audiobooks = lib.mkOption { + type = lib.types.str; + description = "Hostname for audiobook server (Audiobookshelf)."; + }; files = lib.mkOption { type = lib.types.str; description = "Hostname for files server (Filebrowser)."; diff --git a/modules/nixos/services/audiobookshelf.nix b/modules/nixos/services/audiobookshelf.nix index e7303a1..3791b4e 100644 --- a/modules/nixos/services/audiobookshelf.nix +++ b/modules/nixos/services/audiobookshelf.nix @@ -1,13 +1,6 @@ { config, lib, ... }: { - options = { - hostnames.audiobooks = lib.mkOption { - type = lib.types.str; - description = "Hostname for audiobook server (Audiobookshelf)."; - }; - }; - config = lib.mkIf config.services.audiobookshelf.enable { services.audiobookshelf = {