This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / kagi-search / flake-module.nix
841 B 30 lines
1{ 2 perSystem = 3 { pkgs, self', ... }: 4 let 5 python = pkgs.python3.withPackages (ps: with ps; [ beautifulsoup4 ]); 6 pinentry = 7 if pkgs.stdenv.isDarwin then 8 "${pkgs.pinentry_mac}/${pkgs.pinentry_mac.binaryPath}" 9 else 10 "${self'.packages.pinentry-rofi}/bin/pinentry-rofi"; 11 in 12 { 13 packages.kagi-search = 14 (pkgs.writeShellApplication { 15 name = "kagi-search"; 16 runtimeInputs = [ 17 python 18 pkgs.rbw 19 ]; 20 text = '' 21 if ! rbw unlocked 2>/dev/null; then 22 rbw config set pinentry ${pinentry} 23 rbw unlock 24 fi 25 ${python}/bin/python ${./kagi_search.py} "$@" 26 ''; 27 }).overrideAttrs 28 { passthru.usage = builtins.readFile ./usage.kdl; }; 29 }; 30}