programs: enable catt

This commit is contained in:
Colin 2023-12-14 08:41:16 +00:00
parent 58105e9b62
commit cb0d9e077b
3 changed files with 31 additions and 0 deletions

View File

@ -183,6 +183,7 @@ in
];
consoleMediaUtils = declPackageSet [
"catt" # cast videos to chromecast
"ffmpeg"
"imagemagick"
"sox"

View File

@ -0,0 +1,29 @@
# use like:
# - catt -d lgtv_chrome cast ./path/to.mp4
#
# support matrix:
# - webm: audio only
# - mp4: audio + video
{ config, lib, ... }:
let
cfg = config.sane.programs.catt;
in
{
sane.programs.catt = {
fs.".config/catt/catt.cfg".symlink.text = ''
[options]
device = lgtv_chrome
[aliases]
lgtv_chrome = 10.78.79.106
'';
};
# necessary to cast local files
networking.firewall.allowedTCPPortRanges = lib.mkIf cfg.enabled [
{
from = 45000;
to = 47000;
}
];
}

View File

@ -11,6 +11,7 @@
./brave.nix
./calls.nix
./cantata.nix
./catt.nix
./chatty.nix
./conky
./cozy.nix