nix-config/modules2/hosts/t480/heightwidth.nix
Oliver Davies 426edf6c84
All checks were successful
/ check (push) Successful in 2m41s
Add heightwidth script
2025-08-07 17:50:54 +01:00

18 lines
461 B
Nix

{
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"
'';
})
];
};
}