configuration.nix/modules/home/programs/firefox/default.nix

88 lines
2.1 KiB
Nix
Raw Normal View History

2023-11-26 17:00:16 +01:00
{ pkgs }: {
programs.firefox = {
enable = true;
profiles.ivand = {
id = 0;
search.default = "DuckDuckGo";
bookmarks = [
{
name = "home-options";
url = "https://nix-community.github.io/home-manager/options.html";
}
];
containers = {
work = {
color = "blue";
icon = "briefcase";
2023-11-26 22:27:36 +01:00
id = 1;
2023-11-26 17:00:16 +01:00
};
2023-11-26 22:27:36 +01:00
vid = {
2023-11-26 17:00:16 +01:00
color = "red";
icon = "circle";
2023-11-26 22:27:36 +01:00
id = 2;
2023-11-26 17:00:16 +01:00
};
2023-11-26 22:27:36 +01:00
localhost = {
2023-11-26 17:00:16 +01:00
color = "turquoise";
2023-11-26 22:27:36 +01:00
icon = "dollar";
id = 3;
2023-11-26 17:00:16 +01:00
};
};
settings = {
"general.smoothScroll" = true;
"signon.rememberSignons" = false;
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
2023-11-28 08:05:59 +01:00
"layout.frame_rate" = 120;
2023-11-26 17:00:16 +01:00
};
};
policies = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = true;
OfferToSaveLogins = false;
OfferToSaveLoginsDefault = false;
PasswordManagerEnabled = false;
FirefoxHome = {
Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
Handlers = {
schemes = {
mailto = {
action = "useHelperApp";
ask = false;
handlers = [
{
name = "RoundCube";
uriTemplate = "https://mail.idimitrov.dev/?_task=mail&_action=compose&_to=%s";
}
];
};
};
};
};
};
2023-12-01 17:09:45 +01:00
home = {
file.".mozilla/native-messaging-hosts/gpgmejson.json".text = builtins.toJSON {
name = "gpgmejson";
description = "Integration with GnuPG";
path = "${pkgs.gpgme.dev}/bin/gpgme-json";
type = "stdio";
allowed_extensions = [
"jid1-AQqSMBYb0a8ADg@jetpack"
];
};
};
2023-11-26 17:00:16 +01:00
}