nixos/home/common/optional/desktop/dwm/scripts/aichat-wrapper.nix

13 lines
262 B
Nix
Raw Permalink Normal View History

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