{ pkgs, ... }: { programs = { firefox = { enable = true; package = pkgs.firefox.override { extraPolicies = import ./policies.nix; extraPrefs = builtins.readFile ./prefs.cfg; }; profiles.default = { id = 0; name = "Default"; isDefault = true; search = { default = "DuckDuckGo"; engines = { "Bing".metaData.hidden = true; "Google".metaData.hidden = true; "Nix Packages" = { urls = [ { template = "https://search.nixos.org/packages"; params = [ { name = "channel"; value = "unstable"; } { name = "query"; value = "{searchTerms}"; } ]; } ]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@np" ]; }; "NixOS Options" = { urls = [ { template = "https://search.nixos.org/options"; params = [ { name = "channel"; value = "unstable"; } { name = "query"; value = "{searchTerms}"; } ]; } ]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@no" ]; }; "GitHub" = { urls = [ { template = "https://github.com/search"; params = [ { name = "q"; value = "{searchTerms}"; } { name = "type"; value = "repositories"; } ]; } ]; iconUpdateURL = "https://github.com/favicon.ico"; definedAliases = [ "@gh" ]; }; "Docker Hub" = { urls = [ { template = "https://hub.docker.com/search"; params = [ { name = "q"; value = "{searchTerms}"; } ]; } ]; iconUpdateURL = "https://hub.docker.com/favicon.ico"; definedAliases = [ "@docker" ]; }; "YouTube" = { urls = [ { template = "https://www.youtube.com/results"; params = [ { name = "search_query"; value = "{searchTerms}"; } ]; } ]; iconUpdateURL = "https://www.youtube.com/favicon.ico"; definedAliases = [ "@yt" ]; }; }; force = true; }; }; }; }; }