diff --git a/modules2/hosts/t480/heightwidth.nix b/modules2/hosts/t480/heightwidth.nix new file mode 100644 index 00000000..c63171a6 --- /dev/null +++ b/modules2/hosts/t480/heightwidth.nix @@ -0,0 +1,18 @@ +{ + flake.modules.nixos.pc = + { pkgs, ... }: + { + environment.systemPackages = [ + (pkgs.writeShellApplication { + name = "heightwidth"; + + runtimeInputs = [ pkgs.ffmpeg ]; + + # https://github.com/rwxrob/dot/blob/main/scripts/heightwidth. + text = '' + ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=noprint_wrappers=1 "$1" + ''; + }) + ]; + }; +}