Dolce Far Niente

Nix-shell -p subtitleedit

I've always had a weak spot for NixOS.

Don't really care about flakes and home manager, but that you declare one configuration that rules all is incredibly powerful.

No more adding firewalls, bluetooth or zram, put it in that configuration.nix one time and it'll stay there. Applications you want are in and the ones you don't are excluded, just like enabling services. Don't need something? Just comment it out and rebuild.

Nix-shell is the tooling I use to run an application just once, after that it gets removed. And Nix packages is probably the largest package database around in Linux, bar none.

Friend of mine asked for a subtitle for some specific mkv files (The Capture S03). I soon found out they were included in the files I originally saved for my own archive.

How to extract them? Well, there's a program called Subtitle Edit, and it's available in nixpkgs. Using the title of this post as command and then entering subtitleedit on the cli I got it up and running and extracted all subtitles. After that I closed the nix-shell and subtitleedit left my system.

One of the hidden powers of NixOS!