From 2e25cdebf6eeb346baf5ab375e42361a5c3b0b89 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Mon, 3 Jun 2024 18:26:34 +0200 Subject: [PATCH] Updated firefox configuration --- flake.lock | 24 +++++++------- modules/home/desktop/hyprland/default.nix | 2 +- modules/home/programs/firefox.nix | 40 +++++++++++++++++++---- 3 files changed, 47 insertions(+), 19 deletions(-) diff --git a/flake.lock b/flake.lock index 05abfab..21c438c 100644 --- a/flake.lock +++ b/flake.lock @@ -25,11 +25,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1716909762, - "narHash": "sha256-4x85qOYW7mdhVBZKaEpFmab0XLwLhqgdPL0ZatCsiQ8=", + "lastModified": 1717316653, + "narHash": "sha256-91VBjCb9A5Sv1N7LpBg0OzTG0DKpvXVAnIT01Ba4lOw=", "owner": "rycee", "repo": "nur-expressions", - "rev": "befbf6436c4b2f834e938056d67be151c4c42ec4", + "rev": "29a3b4c8d5f21dcb359a91d88fd94ae4aa3e6a47", "type": "gitlab" }, "original": { @@ -77,11 +77,11 @@ ] }, "locked": { - "lastModified": 1716610319, - "narHash": "sha256-NAMI7NvMzeE3aqX2pPcybs0PqRAXWWZMCVXF+7Tu4sQ=", + "lastModified": 1717203051, + "narHash": "sha256-8ZgIn3hC0G0lSOyZhPw2RpJj7ZoVfTKQZ88URVOpddo=", "owner": "getchoo", "repo": "nix-exprs", - "rev": "1512963380a2618ad4ff0d7a929143d4257ec3b6", + "rev": "ad58ceb19c68de2bd18c765fd813611f8db6df62", "type": "github" }, "original": { @@ -186,11 +186,11 @@ "systems": "systems_4" }, "locked": { - "lastModified": 1716742013, - "narHash": "sha256-seOWIKi6jXE1BIQ6FLXUMe0h54cLwAxCCiL8bXFx60Q=", + "lastModified": 1716987277, + "narHash": "sha256-l8aa+XPDbM3Mf3W4ukC/tBBHVZE8A3att4KLXrnyKSI=", "owner": "hyprwm", "repo": "hyprlock", - "rev": "768cd3ea525bbd1ed2dde5928b0843129274b50d", + "rev": "e07d4110dc0b9d1786403aa760232564ad28b6fa", "type": "github" }, "original": { @@ -250,11 +250,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1716509168, - "narHash": "sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8=", + "lastModified": 1716948383, + "narHash": "sha256-SzDKxseEcHR5KzPXLwsemyTR/kaM9whxeiJohbL04rs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "bfb7a882678e518398ce9a31a881538679f6f092", + "rev": "ad57eef4ef0659193044870c731987a6df5cf56b", "type": "github" }, "original": { diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index 39c4420..bc15426 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -24,7 +24,7 @@ wayland.windowManager.hyprland = { enable = true; settings = { - monitor = if hostName == "xv-laptop" then ",preferred,auto,1.4" else ",preferred,auto,auto"; + monitor = if hostName == "xv-laptop" then ",preferred,auto,1.333" else ",preferred,auto,auto"; exec-once = [ "waybar" diff --git a/modules/home/programs/firefox.nix b/modules/home/programs/firefox.nix index ee94b39..0c4f294 100644 --- a/modules/home/programs/firefox.nix +++ b/modules/home/programs/firefox.nix @@ -7,7 +7,40 @@ programs.firefox = { enable = true; -# nativeMessagingHosts = [ pkgs.unstable.firefoxpwa ]; + nativeMessagingHosts = [ pkgs.unstable.firefoxpwa ]; + policies = { + DisableTelemetry = true; + DisableFirefoxStudies = true; + EnableTrackingProtection = { + Value = true; + Locked = true; + Cryptomining = true; + Fingerprinting = true; + }; + DisablePocket = true; + DisableFirefoxAccounts = true; + DisableAccounts = true; + DontCheckDefaultBrowser = true; + DisplayBookmarksToolbar = "never"; + ExtensionSettings = { + "nl-NL@dictionaries.addons.mozilla.org" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/woordenboek-nederlands/latest.xpi"; + installation_mode = "force_installed"; + }; + "uBlock0@raymondhill.net" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + installation_mode = "force_installed"; + }; + "{446900e4-71c2-419f-a6a7-df9c091e268b}" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi"; + installation_mode = "force_installed"; + }; + "firefoxpwa@filips.si" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/pwas-for-firefox/latest.xpi"; + installation_mode = "force_installed"; + }; + }; + }; profiles.xeovalyte = { search.engines = { "Nix" = { @@ -78,11 +111,6 @@ ]; "signon.rememberSignons" = false; }; - - extensions = with inputs.firefox-addons.packages."x86_64-linux"; [ - bitwarden - ublock-origin - ]; }; }; }