diff options
author | midchildan <git@midchildan.org> | 2022-08-17 18:50:46 +0900 |
---|---|---|
committer | midchildan <git@midchildan.org> | 2023-05-22 05:24:19 +0900 |
commit | 94eb60a7d21f3fb594de4f5a5ac40cf24779881d (patch) | |
tree | f45cd2e8054c829c1327c6991d15725606eaeaf5 | |
parent | 059006b84b3c1a6d987e9f09bcaf356c99c2ed6f (diff) | |
download | nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.tar nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.tar.gz nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.tar.bz2 nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.tar.lz nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.tar.xz nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.tar.zst nixpkgs-94eb60a7d21f3fb594de4f5a5ac40cf24779881d.zip |
nixos/epgstation: add a new option 'ffmpeg'
Closes #187120.
-rw-r--r-- | nixos/modules/services/video/epgstation/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/nixos/modules/services/video/epgstation/default.nix b/nixos/modules/services/video/epgstation/default.nix index 78826e048f2..fca483b0dbd 100644 --- a/nixos/modules/services/video/epgstation/default.nix +++ b/nixos/modules/services/video/epgstation/default.nix @@ -80,11 +80,11 @@ in options.services.epgstation = { enable = lib.mkEnableOption (lib.mdDoc description); - package = lib.mkOption { - default = pkgs.epgstation; - type = lib.types.package; - defaultText = lib.literalExpression "pkgs.epgstation"; - description = lib.mdDoc "epgstation package to use"; + package = lib.mkPackageOptionMD pkgs "epgstation" { }; + + ffmpeg = lib.mkPackageOptionMD pkgs "ffmpeg" { + default = [ "ffmpeg-headless" ]; + example = "pkgs.ffmpeg-full"; }; usePreconfiguredStreaming = lib.mkOption { @@ -278,6 +278,8 @@ in package = lib.mkDefault pkgs.mariadb; ensureDatabases = [ cfg.database.name ]; # FIXME: enable once mysqljs supports auth_socket + # https://github.com/mysqljs/mysql/issues/1507 + # # ensureUsers = [ { # name = username; # ensurePermissions = { "${cfg.database.name}.*" = "ALL PRIVILEGES"; }; @@ -295,8 +297,8 @@ in database = cfg.database.name; }; - ffmpeg = lib.mkDefault "${pkgs.ffmpeg-full}/bin/ffmpeg"; - ffprobe = lib.mkDefault "${pkgs.ffmpeg-full}/bin/ffprobe"; + ffmpeg = lib.mkDefault "${cfg.ffmpeg}/bin/ffmpeg"; + ffprobe = lib.mkDefault "${cfg.ffmpeg}/bin/ffprobe"; # for disambiguation with TypeScript files recordedFileExtension = lib.mkDefault ".m2ts"; |