dotfiles/lib/shared/home-manager-packages.nix
Oliver Davies ce5b4fa0a1 Create export-video-list script
Create a `export-video-list` script that exports all the video files on
my external hard drive to a JSON file so I can easily see what videos I
have without needing to get and plug in the drive.

I can easily view it using `bat` or `jq` and combine it with `grep` to
search for a specific video - e.g. `cat ~/video.json | grep -i nix`
(`-i` makes the search case-insensitive).
2024-08-20 19:48:57 +01:00

77 lines
1.1 KiB
Nix

{
desktop,
inputs,
pkgs,
...
}:
let
php = pkgs.php82;
phpPackages = pkgs.php82Packages;
inherit (pkgs) writeShellApplication;
_timer = writeShellApplication (import ./scripts/_timer.nix);
export-video-list = writeShellApplication (
import ./scripts/export-video-list.nix { inherit pkgs; }
);
notetaker = writeShellApplication (import ./scripts/notetaker.nix);
run = writeShellApplication (import ./scripts/run.nix { inherit pkgs; });
t = writeShellApplication (import ./scripts/t.nix { inherit pkgs; });
timer = writeShellApplication (import ./scripts/timer.nix);
in
with pkgs;
[
age
awscli2
bitwarden-cli
bottom
cachix
ctop
delta
dog
doppler
entr
fd
file
gcc
gh
git
git-crypt
gnupg
go
htop
inotify-tools
jq
lua
mob
mysql
php
phpPackages.composer
pv
rustywind
simple-http-server
sshs
tldr
tree
tree-sitter
unzip
virtualenv
wget
xclip
xcp
xdg-utils
xh
yarn
# Scripts.
notetaker
run
t
]
++ pkgs.lib.optionals desktop [
# Scripts.
_timer
export-video-list
timer
]