Closed cideM closed 3 years ago
Hum, looks like the change in 7d765d8f46b479abe69b6da324e6bb6444be5cfd https://github.com/nix-community/home-manager/blob/7d765d8f46b479abe69b6da324e6bb6444be5cfd/modules/programs/firefox.nix#L285
should have been: cfg.package.override (old: old // { cfg = old.cfg or {} // fcfg; })
cc @ambroisie
edit: this is the only thing that could affect this I believe.
I recall the definition of the different Firefox versions pass other information in the top-level arguments, the override must have removed these definitions.
That is probably it, yes.
I won't have access to my NixOS desktop for another week so I can't create a PR right now :(
would need a test too then
I tried reverting the commit and using the same configuration as @cideM. I still get the same error. It seems the error is coming from elsewhere.
I'm also having this issue with programs.firefox.package = pkgs.firefox-wayland
, but my logs show:
building '/nix/store/qixpd9d5sz66qzb4svp02mrhplxn04ba-firefox-88.0.1.drv'...
WARNING: Couldn't set ownership of text file bin/.firefox-old
/nix/store/lgp6bl9sjqd7frsr6szcq82b51ayp9y1-stdenv-linux/setup: line 1387: /nix/store/c1yccvay5ww293036pri6jl6bv0h9kwz-firefox-88.0.1/nix-support/propagated-user-env-packages: Permission denied
builder for '/nix/store/qixpd9d5sz66qzb4svp02mrhplxn04ba-firefox-88.0.1.drv' failed with exit code 1
WARNING: Couldn't set ownership of text file bin/.firefox-old /nix/store/lgp6bl9sjqd7frsr6szcq82b51ayp9y1-stdenv-linux/setup: line 1387: /nix/store/c1yccvay5ww293036pri6jl6bv0h9kwz-firefox-88.0.1/nix-support/propagated-user-env-packages: Permission denied
@JustinLovinger You apparently have a different issue — I got the same error because my Home Manager config did hot have home.stateVersion = "21.05"
(or another value not less than 19.09), so the state version defaulted to 18.09, and in this case program.firefox.package
is expected to be an unwrapped Firefox package. If you also have the same situation, you may need to change some other settings when you add home.stateVersion
.
The reason why I did not have home.stateVersion
is that I installed Home Manager as a NixOS module, and therefore did not get an initial configuration file from the installation process, as suggested for a standalone installation.
@sigprof That appeared to fix it for me. Curiously, Home Manager didn't seem to mind a wrapped Firefox package before 21.05 .
One more voice chiming in to say that on nixos as of 20.09 I was setting home.firefox.package
with no explicit home.stateVersion
and having no issues. Upgrading to 21.05 gave me the propagated-user-env-packages: Permission denied
breakage for the first time, and setting home.stateVersion = "21.05"
fixed me.
Seems like the solution is to set home.stateVersion
to something above 20.09
.
Closing this. Feel free to reopen.
Issue description
This used to work but right now it gives me:
Note that the directory has an executable
but it doesn't end on
-bin
Technical details