From e66277b3f18c341dc31774f485b60918f6f31202 Mon Sep 17 00:00:00 2001 From: Dragyx <66752602+Dragyx@users.noreply.github.com> Date: Sun, 14 Apr 2024 23:09:03 +0200 Subject: [PATCH] Add default firefox profile for dragyx/common --- hosts/dragyx/common/configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hosts/dragyx/common/configuration.nix b/hosts/dragyx/common/configuration.nix index 15dce96..a665f40 100644 --- a/hosts/dragyx/common/configuration.nix +++ b/hosts/dragyx/common/configuration.nix @@ -1,5 +1,8 @@ { config, pkgs, ... }: +let + username = config.modules.other.system.username; +in { imports = [ ../../../options/common/pin-registry.nix @@ -15,5 +18,21 @@ localuser = null; }; + home-manager.users.${username} = { + programs.firefox.profiles = { + main = { + id = 0; + isDefault = true; + search.default = "DuckDuckGo"; + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + ublock-origin + bitwarden + darkreader + maya-dark + ]; + search.force = true; + }; + }; + }; }