mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 02:33:00 +00:00
fix: move audiobookshelf hostname to common
This commit is contained in:
parent
875054aa2c
commit
e9a2ce6df3
@ -77,6 +77,10 @@
|
|||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
hostnames = {
|
hostnames = {
|
||||||
|
audiobooks = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "Hostname for audiobook server (Audiobookshelf).";
|
||||||
|
};
|
||||||
files = lib.mkOption {
|
files = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Hostname for files server (Filebrowser).";
|
description = "Hostname for files server (Filebrowser).";
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
options = {
|
|
||||||
hostnames.audiobooks = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
description = "Hostname for audiobook server (Audiobookshelf).";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.services.audiobookshelf.enable {
|
config = lib.mkIf config.services.audiobookshelf.enable {
|
||||||
|
|
||||||
services.audiobookshelf = {
|
services.audiobookshelf = {
|
||||||
|
Loading…
Reference in New Issue
Block a user