programs: enable catt
This commit is contained in:
parent
58105e9b62
commit
cb0d9e077b
|
@ -183,6 +183,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
consoleMediaUtils = declPackageSet [
|
consoleMediaUtils = declPackageSet [
|
||||||
|
"catt" # cast videos to chromecast
|
||||||
"ffmpeg"
|
"ffmpeg"
|
||||||
"imagemagick"
|
"imagemagick"
|
||||||
"sox"
|
"sox"
|
||||||
|
|
29
hosts/common/programs/catt.nix
Normal file
29
hosts/common/programs/catt.nix
Normal 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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
|
@ -11,6 +11,7 @@
|
||||||
./brave.nix
|
./brave.nix
|
||||||
./calls.nix
|
./calls.nix
|
||||||
./cantata.nix
|
./cantata.nix
|
||||||
|
./catt.nix
|
||||||
./chatty.nix
|
./chatty.nix
|
||||||
./conky
|
./conky
|
||||||
./cozy.nix
|
./cozy.nix
|
||||||
|
|
Loading…
Reference in New Issue
Block a user