From 0d4bed4e3886c772658e4f37047cf03755490ebd Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 24 Jun 2024 00:39:36 -0400 Subject: [PATCH] aly: add default firefox profile --- homes/aly.nix | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/homes/aly.nix b/homes/aly.nix index be2b9aec..33af465e 100644 --- a/homes/aly.nix +++ b/homes/aly.nix @@ -8,9 +8,11 @@ }: { home = { homeDirectory = "/home/aly"; + file."${config.xdg.cacheHome}/keepassxc/keepassxc.ini".text = lib.generators.toINI {} { General.LastActiveDatabase = "${config.home.homeDirectory}/sync/Passwords.kdbx"; }; + packages = with pkgs; [ browsh curl @@ -27,12 +29,137 @@ webcord wget ]; + stateVersion = "24.05"; username = "aly"; }; programs = { home-manager.enable = true; + + firefox = { + profiles.default = { + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + augmented-steam + omnivore + sidebery + sponsorblock + zoom-redirector + ]; + + search = { + default = "DuckDuckGo"; + force = true; + engines = { + "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 = ["!nix"]; + }; + + "Bing" = { + metaData = { + hidden = true; + alias = "!bing"; + }; + }; + "Google" = { + metaData = { + hidden = true; + alias = "!google"; + }; + }; + }; + }; + + settings = { + "permissions.default.desktop-notification" = 2; + "network.cookie.cookieBehavior" = 1; + "privacy.donottrackheader.enabled" = true; + "privacy.fingerprintingProtection" = true; + "privacy.trackingprotection.emailtracking.enabled" = true; + "privacy.trackingprotection.enabled" = true; + "privacy.trackingprotection.global-checkbox.enabled" = true; + "privacy.trackingprotection.socialtracking.enabled" = true; + "services.sync.prefs.sync.browser.uiCustomization.state" = true; + + "browser.uiCustomization.state" = '' + { + "placements": { + "widget-overflow-fixed-list": [], + "unified-extensions-area": [ + "ublock0_raymondhill_net-browser-action", + "sponsorblocker_ajay_app-browser-action", + "_019b606a-6f61-4d01-af2a-cea528f606da_-browser-action", + "jid1-bofifl9vbdl2zq_jetpack-browser-action" + ], + "nav-bar": [ + "back-button", + "forward-button", + "stop-reload-button", + "customizableui-special-spring1", + "urlbar-container", + "customizableui-special-spring2", + "downloads-button", + "save-extension_omnivore_app-browser-action", + "keepassxc-browser_keepassxc_org-browser-action", + "_3c078156-979c-498b-8990-85f7987dd929_-browser-action", + "unified-extensions-button", + "fxa-toolbar-menu-button" + ], + "toolbar-menubar": [ + "menubar-items" + ], + "TabsToolbar": [ + "firefox-view-button", + "tabbrowser-tabs", + "new-tab-button", + "alltabs-button" + ], + "PersonalToolbar": [ + "personal-bookmarks" + ] + }, + "seen": [ + "save-extension_omnivore_app-browser-action", + "_019b606a-6f61-4d01-af2a-cea528f606da_-browser-action", + "sponsorblocker_ajay_app-browser-action", + "developer-button", + "keepassxc-browser_keepassxc_org-browser-action", + "ublock0_raymondhill_net-browser-action", + "jid1-bofifl9vbdl2zq_jetpack-browser-action", + "_3c078156-979c-498b-8990-85f7987dd929_-browser-action" + ], + "dirtyAreaCache": [ + "unified-extensions-area", + "nav-bar", + "toolbar-menubar", + "TabsToolbar", + "PersonalToolbar" + ], + "currentVersion": 20, + "newElementCount": 4 + } + ''; + }; + }; + }; + git = { enable = true; userName = "Aly Raffauf";