From e9a2ce6df34b4f7de03035166379ff931c464cfd Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:20:21 -0500 Subject: [PATCH] fix: move audiobookshelf hostname to common --- modules/common/default.nix | 4 ++++ modules/nixos/services/audiobookshelf.nix | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) 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 = {