Nix: add screen share option
This commit is contained in:
@@ -27,6 +27,12 @@
|
|||||||
default = false;
|
default = false;
|
||||||
description = "Enable video playback";
|
description = "Enable video playback";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enable_screenshare = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable screensharing";
|
||||||
|
};
|
||||||
|
|
||||||
store_path = lib.mkOption {
|
store_path = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -109,6 +115,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";
|
||||||
|
ENABLE_SCREENSHARE = if cfg.enable_screenshare then "1" else "0";
|
||||||
USE_INVIDIOUS = if cfg.invidious.enable then "1" else "0";
|
USE_INVIDIOUS = if cfg.invidious.enable then "1" else "0";
|
||||||
INVIDIOUS_BASE_URL = cfg.invidious.url;
|
INVIDIOUS_BASE_URL = cfg.invidious.url;
|
||||||
STORE_PATH = cfg.store_path;
|
STORE_PATH = cfg.store_path;
|
||||||
|
|||||||
Reference in New Issue
Block a user