mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-22 01:03:00 +00:00
walker: use walker as runner provider
This commit is contained in:
parent
6e273d19b3
commit
18e0a7a026
4 changed files with 207 additions and 49 deletions
35
nixcfgs/users/js0ny/programs/pwa.nix
Normal file
35
nixcfgs/users/js0ny/programs/pwa.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
pwaBrowser =
|
||||
if config.programs.chromium.enable
|
||||
then config.programs.chromium.package
|
||||
else pkgs.chromium;
|
||||
pwaExe = lib.getExe pwaBrowser;
|
||||
pwaBuilder = name: url: icon: genericName: {
|
||||
name = name;
|
||||
genericName = genericName;
|
||||
exec = "${pwaExe} --app=${url}";
|
||||
terminal = false;
|
||||
icon = icon;
|
||||
|
||||
settings = {
|
||||
StartupWMClass = "pwa-${name}";
|
||||
};
|
||||
};
|
||||
pwaBuilderDefault = name: url: pwaBuilder name url "web-app-icon" "Web Application";
|
||||
in {
|
||||
xdg.desktopEntries = {
|
||||
claude = pwaBuilderDefault "Claude" "https://claude.ai";
|
||||
grok = pwaBuilderDefault "Grok" "https://grok.com";
|
||||
chatgpt = pwaBuilderDefault "ChatGPT" "https://chatgpt.com";
|
||||
gemini = pwaBuilderDefault "Gemini" "https://gemini.google.com";
|
||||
notebooklm = pwaBuilderDefault "NotebookLM" "https://notebooklm.google.com";
|
||||
qwenai = pwaBuilderDefault "QwenAI" "https://chat.qwen.ai";
|
||||
folo = pwaBuilderDefault "Folo" "https://app.folo.is";
|
||||
tradingview = pwaBuilderDefault "TradingView" "https://www.tradingview.com";
|
||||
};
|
||||
}
|
||||
16
nixcfgs/users/js0ny/programs/walker.nix
Normal file
16
nixcfgs/users/js0ny/programs/walker.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{...}: {
|
||||
programs.walker = {
|
||||
enable = true;
|
||||
runAsService = true;
|
||||
providers.prefixes = [
|
||||
{
|
||||
provider = "websearch";
|
||||
prefix = "+";
|
||||
}
|
||||
{
|
||||
provider = "providerlist";
|
||||
prefix = "_";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -59,6 +59,8 @@
|
|||
./programs/anki.nix
|
||||
./programs/libvirt.nix
|
||||
./programs/block-desktop-entries.nix
|
||||
./programs/pwa.nix
|
||||
./programs/walker.nix
|
||||
|
||||
# Desktop Linux
|
||||
./programs/desktop/plasma
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue