57 lines
1.6 KiB
Nix
57 lines
1.6 KiB
Nix
{ pkgs, lib, ... }:
|
|
let merge = lib.foldr (a: b: a // b) { };
|
|
in {
|
|
programs.firefox = {
|
|
enable = true;
|
|
package = if pkgs.stdenv.isLinux then pkgs.firefox else pkgs.firefox-bin;
|
|
profiles = {
|
|
default = {
|
|
name = "privacy-friendly";
|
|
settings = merge [
|
|
(import ./config/annoyances.nix)
|
|
(import ./config/browser-features.nix)
|
|
(import ./config/privacy.nix)
|
|
(import ./config/tracking.nix)
|
|
(import ./config/security.nix)
|
|
];
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
clearurls
|
|
darkreader
|
|
#df-youtube
|
|
#facebook-container
|
|
#octotree
|
|
#okta-browser-plugin
|
|
#onepassword-password-manager
|
|
#plasma-integration
|
|
#return-youtube-dislikes
|
|
sponsorblock
|
|
ublock-origin
|
|
#vimium
|
|
];
|
|
};
|
|
# This does not have as strict privacy settings as the default profile.
|
|
# It uses the default firefox settings. Useful when something is not
|
|
# working using the default profile
|
|
shit = {
|
|
name = "trade-privacy-for-convenience";
|
|
id = 1;
|
|
settings = merge [ (import ./config/annoyances.nix) ];
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
clearurls
|
|
darkreader
|
|
#df-youtube
|
|
#facebook-container
|
|
#octotree
|
|
#okta-browser-plugin
|
|
#onepassword-password-manager
|
|
#plasma-integration
|
|
#return-youtube-dislikes
|
|
sponsorblock
|
|
ublock-origin
|
|
#vimium
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|