Misterio77 / nix-config

Personal nixos and home-manager configurations.
https://m7.rs/git/nix-config/
MIT License
719 stars 42 forks source link

Firefox add-ons issue #25

Closed taha-yassine closed 8 months ago

taha-yassine commented 9 months ago

Hi, First of all thanks a lot for your work, it was the most helpful resource in my NixOS journey. I'm trying to add Firefox add-ons to my setup through hm. I use your Standard config. Inspired by this repo, I added

firefox-addons = {
  url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
  inputs.nixpkgs.follows = "nixpkgs";
};

to the inputs of my flake.nix and

extensions = with pkgs.inputs.firefox-addons; [
  ublock-origin
  bitwarden
];

to my Firefox entry in home.nix. When I run the hm switch command I get this error:

error: attribute 'inputs' missing

Is there something wrong I'm doing? Thanks!

t-chab commented 8 months ago

Hello, as @taha-yassine said, thanks a lot for your inspiring flake repo.

@taha-yassine : I got the same error as you when I first tried to add firefox addons to my setup.

I still do not figure out why (I'm still a huge nix noob :sweat_smile: ) but after adding this code snippet to my setup it seems to fix the issue.

taha-yassine commented 8 months ago

Hello, as @taha-yassine said, thanks a lot for your inspiring flake repo.

@taha-yassine : I got the same error as you when I first tried to add firefox addons to my setup.

I still do not figure out why (I'm still a huge nix noob 😅 ) but after adding this code snippet to my setup it seems to fix the issue.

Thanks a lot for your answer. I asked about this same issue in the NixOS forums and someone suggested a fix similar to what you are suggesting: https://discourse.nixos.org/t/firefox-extensions-with-home-manager/34108