invidious config: enabled->enable
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
invidious = lib.mkOption {
|
invidious = lib.mkOption {
|
||||||
type = lib.types.submodule {
|
type = lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
enabled = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Enable Invidious";
|
description = "Enable Invidious";
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
default = {
|
default = {
|
||||||
enabled = false;
|
enable = false;
|
||||||
url = "http://invidious.nor";
|
url = "http://invidious.nor";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
environment = {
|
environment = {
|
||||||
PORT = toString cfg.port;
|
PORT = toString cfg.port;
|
||||||
ENABLE_VIDEO = if cfg.enable_video then "1" else "0";
|
ENABLE_VIDEO = if cfg.enable_video then "1" else "0";
|
||||||
USE_INVIDIOUS = if cfg.invidious.enabled then "1" else "0";
|
USE_INVIDIOUS = if cfg.invidious.enable then "1" else "0";
|
||||||
INVIDIOUS_URL = cfg.invidious.url;
|
INVIDIOUS_URL = cfg.invidious.url;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user