nixos/home/common/optional/desktop/dwm/scripts/aichat-wrapper.nix
Sam 5c7a624c94 Add aichat-wrapper script to dwm configuration
- Add a new script to the dwm configuration that allows for easy selection
and use of different AI models using the aichat command line interface.
2024-06-22 21:10:15 +01:00

12 lines
262 B
Nix

{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellScriptBin "aichat-wrapper" ''
#!/usr/bin/env bash
model=$(${pkgs.aichat}/bin/aichat --list-models | ${pkgs.fzf}/bin/fzf)
${pkgs.aichat}/bin/aichat --model "$model"
'')
];
}