diff --git a/modules/core/firefox.nix b/modules/core/firefox.nix index 8d3ec00..068e5b5 100644 --- a/modules/core/firefox.nix +++ b/modules/core/firefox.nix @@ -9,10 +9,6 @@ let pipewireCfg = config.modules.pipewire; in { - programs = { - firefox.enable = true; - }; - # Add wayland screensharing support if PipeWire is enabled environment.systemPackages = with pkgs; diff --git a/modules/homes/default.nix b/modules/homes/default.nix index 9c31785..299efe1 100644 --- a/modules/homes/default.nix +++ b/modules/homes/default.nix @@ -4,6 +4,7 @@ { imports = [ ./direnv.nix + ./firefox.nix ./fzf.nix ./hyprland ./kitty.nix diff --git a/modules/homes/firefox.nix b/modules/homes/firefox.nix new file mode 100644 index 0000000..28c86b0 --- /dev/null +++ b/modules/homes/firefox.nix @@ -0,0 +1,38 @@ +{ + pkgs, + username, + ... +}: +{ + programs.firefox = { + enable = true; + package = pkgs.firefox; + + policies = { + # Updates & Background Services + AppAutoUpdate = false; + BackgroundAppUpdate = false; + + # Extensions + ExtensionSettings = let + moz = short: "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi"; + in { + "*".installation_mode = "blocked"; + + "uBlock0@raymondhill.net" = { + install_url = moz "ublock-origin"; + installation_mode = "force_installed"; + updates_disabled = true; + }; + }; + + profiles = { + ${username} = { + id = 0; + isDefault = true; + name = "${username}"; + }; + }; + }; + }; +} \ No newline at end of file diff --git a/modules/homes/stylix.nix b/modules/homes/stylix.nix index 4b8dfaa..deb4f05 100644 --- a/modules/homes/stylix.nix +++ b/modules/homes/stylix.nix @@ -1,5 +1,6 @@ { pkgs, + username, ... }: { @@ -39,5 +40,11 @@ name = "Bibata-Modern-Classic"; size = 24; }; + + targets = { + firefox = { + profileNames = [ "${username}" ]; + }; + }; }; }