All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
21 lines
455 B
Nix
21 lines
455 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
# Copy search engine configuration script
|
|
home.file.".local/bin/brave-search-engines.sh" = {
|
|
source = ./brave-search-engines.sh;
|
|
executable = true;
|
|
};
|
|
|
|
# Run search engine configuration script
|
|
home.activation = {
|
|
setBraveSearchEngines = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
PATH="${pkgs.procps}/bin:${pkgs.sqlite}/bin:$PATH" $HOME/.local/bin/brave-search-engines.sh
|
|
'';
|
|
};
|
|
}
|