89 lines
3.0 KiB
Nix
89 lines
3.0 KiB
Nix
{ inputs, self, ... }: let
|
|
optionName = "features.applications.gui.zen-browser.enable";
|
|
in {
|
|
imports = [ (inputs.helpers.mkStandardFeature.flakeModule "graphics" optionName "Zen Browser") ];
|
|
|
|
flake.nixosModules.graphics = { config, pkgs, ... }: {
|
|
imports = [ (inputs.helpers.mkStandardFeature.nixosModule { inherit config optionName; } {
|
|
environment.systemPackages = [ inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default ];
|
|
}) ];
|
|
};
|
|
|
|
flake.homeModules.graphics = { config, pkgs, ... }: {
|
|
imports = [
|
|
inputs.zen-browser.homeModules.beta
|
|
(inputs.helpers.mkStandardFeature.homeModule { inherit config optionName; } {
|
|
programs.zen-browser = {
|
|
enable = true;
|
|
profiles.default.search = {
|
|
force = true;
|
|
default = "ddg-noai";
|
|
engines = {
|
|
ddg-noai = {
|
|
name = "DuckDuckGo NoAI";
|
|
urls = [
|
|
{
|
|
template = "https://noai.duckduckgo.com/search?q={searchTerms}";
|
|
}
|
|
];
|
|
icon = "https://duckduckgo.com/favicon.ico";
|
|
definedAliases = ["@noai"];
|
|
};
|
|
nixpkgs = {
|
|
name = "nixpkgs packages";
|
|
urls = [
|
|
{
|
|
template = "https://search.nixos.org/packages?query={searchTerms}";
|
|
}
|
|
];
|
|
icon = "https://wiki.nixos.org/favicon.ico";
|
|
definedAliases = ["@np"];
|
|
};
|
|
nixos-options = {
|
|
name = "NixOS options";
|
|
urls = [
|
|
{
|
|
template = "https://search.nixos.org/options?query={searchTerms}";
|
|
}
|
|
];
|
|
icon = "https://wiki.nixos.org/favicon.ico";
|
|
definedAliases = ["@no"];
|
|
};
|
|
nixos-wiki = {
|
|
name = "NixOS Wiki";
|
|
urls = [
|
|
{
|
|
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
|
}
|
|
];
|
|
icon = "https://wiki.nixos.org/favicon.ico";
|
|
definedAliases = ["@nw"];
|
|
};
|
|
noogle = {
|
|
name = "Noogle";
|
|
urls = [
|
|
{
|
|
template = "https://noogle.dev/q/?term={searchTerms}";
|
|
}
|
|
];
|
|
icon = "https://noogle.dev/favicon.ico";
|
|
definedAliases = ["@ng"];
|
|
};
|
|
arch-wiki = {
|
|
name = "ArchWiki";
|
|
urls = [
|
|
{
|
|
template = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
|
}
|
|
];
|
|
icon = "https://wiki.archlinux.org/favicon.ico";
|
|
definedAliases = ["@aw"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
};
|
|
}
|