nix-community / nix-on-droid

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

24.05 #381

Open Sepero opened 1 week ago

Sepero commented 1 week ago

What needs to be done to get 24.05?

t184256 commented 1 week ago

Several things, help is welcome.

t184256 commented 1 week ago

And if you meant "what needs to be done to get nixpkgs 24.05", then just install 23.11, switch channels or flake inputs to nixpkgs 24.05 and update. It's not tested by me yet, but it should work.

nasrally commented 1 week ago

And if you meant "what needs to be done to get nixpkgs 24.05", then just install 23.11, switch channels or flake inputs to nixpkgs 24.05 and update. It's not tested by me yet, but it should work.

It does work fine, the only issue I encountered is with home-manager (used separately, no as a module) having collision with programs such as bash and nix, workaround is settings different priorities for nix-on-droid-path or home-manager-path within your nix profile:

  1. Remove your home-manager "package", with nix-env --uninstall home-manager-path
  2. Update nix-on-droid as usual
  3. Change nix-on-droid priority with nix-env --set-flag priority 10 nix-on-droid-path, any priority value would suffice I think, it just has to be something that is not default (and idk what the default is as it is empty by default)
  4. Reinstall home-manager however you like

After every nix-on-droid update priorities reset, idk how to work around that, I personally use home-manager for everything and almost never touch nix-on-droid, so not that big of a deal for me

Sepero commented 1 week ago

just install 23.11, switch channels or flake inputs to nixpkgs 24.05 and update. It's not tested by me yet, but it should work.

I'm confused, because this is exactly what I did and found out 24.05 doesn't exist? Perhaps you meant testing branch? I'm using flakes. I appreciate everything you're doing on this project.

https://github.com/nix-community/nix-on-droid/tree/release-23.11

https://github.com/nix-community/nix-on-droid/tree/release-24.05

t184256 commented 1 week ago

switch channels or flake inputs to nixpkgs 24.05

this is exactly what I did and found out 24.05 doesn't exist?

Yes, the branch doesn't exist yet. "Switch channels or flake inputs to 24.05 for everything but nix-on-droid", that is. Could be nixpkgs (named nixpkgs or nixos), could be home-manager or something else you might be using. Basically, proceed with upgrading everything, but hold nix-on-droid back.