So i stopped using regular brave browser and librewolf in systemPackages, as I wanted to configure it and my extentions declaritively, so here is what I put in my configuration:
programs = {
firefox = {
enable = true;
package = pkgs.librewolf;
nativeMessagingHosts = [ pkgs.plasma-browser-integration ];
policies.ExtensionSettings = {
"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";
};
};
};
chromium = {
enable = true;
package = pkgs.brave;
extensions = [
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; }
{ id = "nngceckbapebfimnlniiiahkandclblb"; }
{ id = "mnjggcdmjocbbbhaepdhchncahnbgone"; }
{ id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; }
];
};
how come home-manager switch --flake home-manager/.
does not build/install the extension for the browsers
Previously i installed brave via systemPackages, the .desktop did not update and had a path of:
/nix/store/rayfgdrr0vyj8hvv804lh4yxrai038xc-brave-1.70.117/bin/brave
However my new brave package is this:
brave-1.69.168
With the path of:
[spiderunderurbed@daspidercave:~/.config]$ ls -l /home/spiderunderurbed/.nix-profile/bin/brave
lrwxrwxrwx 1 root root 68 Jan 1 1970 /home/spiderunderurbed/.nix-profile/bin/brave -> /nix/store/d7ni5nshpks8idd4hddrkm46sjyccavw-brave-1.69.168/bin/brave
So when i run the brave command, i dont see the extentions i added, note everything i said for brave applies to librewolf too, the relevent config files were made, in .config/BraveSoftware, it has all the extentions i specify listed, but brave isnt using them, again, same thing with librewolf, how do i fix this?
Note i tried running the firefox code in regular nix
here is my config: