Use flakes to run firefox-nightly without manually including overlays.#307
Use flakes to run firefox-nightly without manually including overlays.#307nbp wants to merge 1 commit intomozilla:masterfrom
Conversation
There was a problem hiding this comment.
Why? users can just --override-input nixpkgs nixpkgs/nixos-22.11
There was a problem hiding this comment.
This is another option, yes, but this would still require ?dir=flakes, as there is no nixpkgs input to the root flake.nix.
There was a problem hiding this comment.
i think channel specific flakes are unnecessary bloat and it can't be guaranteed that they will always exist many years in the future, while override-input is future proof
There was a problem hiding this comment.
Testing a bit, it seems that the following are already working:
$ nix shell --impure github:nbp/nixpkgs-mozilla?dir=flakes
$ nix shell --impure --override-input nixpkgs nixpkgs/nixos-22.11 github:nbp/nixpkgs-mozilla?dir=flakes
Thanks for the feedback, I will remove the 2 flake.nix which are simply replacing nixpkgs input and add this one as example in the README.
Unfortunately, the nix run command does not work yet, unless we override again the input, as the pname change is not yet part of mozilla/nixpkgs-mozilla, but it can temporarily be achieved with:
$ nix shell --impure --override-input nixpkgs-mozilla github:nbp/nixpkgs-mozilla github:nbp/nixpkgs-mozilla?dir=flakes
This change creates a set of flakes such that users can download / install / run various versions of Firefox using flakes.
Once merged, this change will make the following command work:
nix run --impure -no-write-lock-file github:mozilla/nixpkgs-mozilla?dir=flakes/nixos-22.11#firefox-nightlyThe details of this command line are explained as part of the README, and provide explanations why each argument is needed or what they can be replaced by when possible.