summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-03-14 16:25:45 -0300
committerLeonardo Santiago <[email protected]>2024-03-14 16:25:45 -0300
commit2b327fb50d00ed192c20b25efc7e065b1e98832e (patch)
tree00e11d5ea89052bbfb088be862cbfe578377f216 /users
parent1ff39bc2cff34cb4aef22785d0d70bbc90efa3f5 (diff)
properly enable gnome connector in firefox
now it can sync those 2 themes
Diffstat (limited to 'users')
-rw-r--r--users/leonardo.nix34
1 files changed, 32 insertions, 2 deletions
diff --git a/users/leonardo.nix b/users/leonardo.nix
index 726bea4..8eb1110 100644
--- a/users/leonardo.nix
+++ b/users/leonardo.nix
@@ -110,7 +110,7 @@
group = "100";
};
};
-
+ services.gnome.gnome-browser-connector.enable = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
@@ -127,12 +127,17 @@
slack
whatsapp-for-linux
telegram-desktop
- firefox
];
};
+
programs = {
firefox = {
enable = true;
+ package = pkgs.firefox.override { # nixpkgs' firefox/wrapper.nix
+ nativeMessagingHosts = [
+ pkgs.gnome-browser-connector
+ ];
+ };
profiles.leonardo = {
userChrome = ''
@import "firefox-gnome-theme/userChrome.css";
@@ -147,6 +152,31 @@
"browser.theme.dark-private-windows" = false; # Disable private window dark theme
};
};
+ policies = {
+ DisableTelemetry = true;
+ DisableFirefoxStudies = true;
+ EnableTrackingProtection = {
+ Value= true;
+ Locked = true;
+ Cryptomining = true;
+ Fingerprinting = true;
+ };
+ DisablePocket = true;
+ DisableFirefoxAccounts = true;
+ DisableAccounts = true;
+ DisableFirefoxScreenshots = true;
+ OverrideFirstRunPage = "";
+ OverridePostUpdatePage = "";
+ DontCheckDefaultBrowser = true;
+ ExtensionSettings = {
+ "*".installation_mode = "blocked"; # blocks all addons except the ones specified below
+ # uBlock Origin:
+ install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
+ installation_mode = "force_installed";
+ };
+ };
+ };
};
bash = {
enable = true;