nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.25k stars 69 forks source link

Provide something like nixos `nix.package` option #128

Closed NobbZ closed 3 years ago

NobbZ commented 3 years ago

Currently if one wants to use an unstable version of nix they have to manually nix-shell into it after each start. Just adding it to environment.packages doesn't seem to properly persist.

With environment.packages = [ pkgs.nixUnstable ] nix --version still reports 2.3.x. even after restarting the terminal.

I have to explicitly do nix-shell -p nixUnstable first.

nixOS Module system has nix.package for this.

Gerschtli commented 3 years ago

Please have a look at https://github.com/t184256/nix-on-droid/pull/129 :)