165 lines
4.1 KiB
Nix
165 lines
4.1 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
programs.librewolf = {
|
|
enable = true;
|
|
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
|
policies = {
|
|
AutofillAddressEnabled = true;
|
|
AutofillCreditCardEnabled = false;
|
|
DisableAppUpdate = true;
|
|
DisableFeedbackCommands = true;
|
|
DisableFirefoxStudies = true;
|
|
DisablePocket = true;
|
|
DisableTelemetry = true;
|
|
DontCheckDefaultBrowser = true;
|
|
OfferToSaveLogins = false;
|
|
EnableTrackingProtection = {
|
|
Value = true;
|
|
Locked = true;
|
|
Cryptomining = true;
|
|
Fingerprinting = true;
|
|
};
|
|
};
|
|
settings = {
|
|
"webgl.disabled" = false;
|
|
"privacy.clearOnShutdown.history" = false;
|
|
"privacy.clearOnShutdown.cookies" = false;
|
|
};
|
|
profiles.default = {
|
|
isDefault = true;
|
|
name = "default";
|
|
settings = {
|
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
|
};
|
|
|
|
bookmarks = {
|
|
force = true;
|
|
settings = [
|
|
{
|
|
name = "Home";
|
|
url = "https://home.dnsc.io";
|
|
}
|
|
"separator"
|
|
{
|
|
name = "Nix Packages";
|
|
url = "https://search.nixos.org/packages";
|
|
}
|
|
{
|
|
name = "Nix Options";
|
|
url = "https://search.nixos.org/options";
|
|
}
|
|
{
|
|
name = "Home Manager";
|
|
url = "https://home-manager-options.extranix.com/";
|
|
}
|
|
];
|
|
};
|
|
|
|
containersForce = true;
|
|
containers = {
|
|
default = {
|
|
name = "personal";
|
|
color = "turquoise";
|
|
icon = "chill";
|
|
id = 1;
|
|
};
|
|
};
|
|
|
|
search = {
|
|
default = "google";
|
|
force = true;
|
|
engines = {
|
|
nix-packages = {
|
|
name = "Nix Packages";
|
|
urls = [
|
|
{
|
|
template = "https://search.nixos.org/packages";
|
|
params = [
|
|
{
|
|
name = "type";
|
|
value = "packages";
|
|
}
|
|
{
|
|
name = "query";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
definedAliases = [ "@np" ];
|
|
};
|
|
|
|
nix-options = {
|
|
name = "Nix Options";
|
|
urls = [
|
|
{
|
|
template = "https://search.nixos.org/options";
|
|
params = [
|
|
{
|
|
name = "query";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
definedAliases = [ "@no" ];
|
|
};
|
|
|
|
nix-home-manager = {
|
|
name = "Nix Home Manager";
|
|
urls = [
|
|
{
|
|
template = "https://home-manager-options.extranix.com";
|
|
params = [
|
|
{
|
|
name = "query";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
definedAliases = [ "@nh" ];
|
|
};
|
|
|
|
nix-wiki = {
|
|
name = "Nix Wiki";
|
|
urls = [
|
|
{
|
|
template = "https://wiki.nixos.org/w/index.php";
|
|
params = [
|
|
{
|
|
name = "search";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
definedAliases = [ "@nw" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
extensions.force = true;
|
|
extensions.packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
|
ublock-origin
|
|
dearrow
|
|
bitwarden
|
|
sponsorblock
|
|
vimium
|
|
];
|
|
};
|
|
};
|
|
}
|