I would like to use a ruby gem commandline app on my nixos desktop. (Namely GitHub - joeyates/imap-backup: Backup and Migrate IMAP Email Accounts). To do so I have added ruby_4_0 to my system packages.
The install instructions tell me to run gem install imap-backup --no-document, which has worked and then imap-backup setup after that, which does not, because the command cannot be found.
Is it possible to install this ruby gem, or ruby gems in general on nixos?
Maybe even immutably through the system configuration?