Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents nixos-install from functioning #37

Closed
NovaViper opened this issue Sep 24, 2023 · 13 comments
Closed

Prevents nixos-install from functioning #37

NovaViper opened this issue Sep 24, 2023 · 13 comments

Comments

@NovaViper
Copy link

I had this program included in my flake but when I try to install my system with nixos-install --flake .#yoganva --root /mnt, the stops with the error "/mnt/nix/store/realylongid-store/Cargo.toml: no such file or directory". only removing the package from my home.packages allowed for my flake to finish installing.

@viperML
Copy link
Owner

viperML commented Sep 24, 2023

What was the nix version used to install the OS?

@NovaViper
Copy link
Author

What was the nix version used to install the OS?

Sorry for the late reply! The version I'm using is NixOS/nixpkgs@e35dcc04 in nixpkgs-unstable

@viperML
Copy link
Owner

viperML commented Sep 24, 2023

So you built an ISO from that commit, from which you ran nixos-install ?

@viperML
Copy link
Owner

viperML commented Sep 24, 2023

nixos-install is broken for flakes, but I believe the issue is fixed for installers with nix 2.17 or above

@NovaViper
Copy link
Author

So you built an ISO from that commit, from which you ran nixos-install ?

No, that's what my flake used, the iso I used is using the stable 23.05 (particularally, the iso named nixos-plasma5-23.05.3376.4c8cf44c5b94-x86_64-linux).

nixos-install is broken for flakes, but I believe the issue is fixed for installers with nix 2.17 or above

Odd.. I've been able to use my flake to install with that command just fine. 🤷🏾‍♀️ After I removed nh from my list of packages to be installed, it allowed me to install NixOS using the flake.

@viperML viperML closed this as completed Sep 24, 2023
@NovaViper
Copy link
Author

Wait don't close it just yet, there's still the present issue of the Cargo.toml error that prevents the installer from running. It stems directly from nh and not the installer; why I was saying when I removed nh from the list of packages to install the installer continues.

@viperML
Copy link
Owner

viperML commented Sep 24, 2023

This is an issue of nixos-install / nix that can't build nh properly

@NovaViper
Copy link
Author

Ah ok. I'll pass over this issue over to the correct repos then. Thank you! 👍🏾

@iynaix
Copy link

iynaix commented Nov 30, 2023

Unfortunately, I'm still experiencing this issue on the 23.11 iso that ships with nix 2.18.1.

@viperML
Copy link
Owner

viperML commented Nov 30, 2023

As I mentioned, I have no idea about the solution for this

@viperML viperML reopened this Nov 30, 2023
@viperML
Copy link
Owner

viperML commented Nov 30, 2023

I've changed the codepaths that import the Cargo files, and added a test to install NixOS. Let me know if it works properly now.

@iynaix
Copy link

iynaix commented Nov 30, 2023

Thanks, that fixed it! 🎉

@viperML
Copy link
Owner

viperML commented Nov 30, 2023

Great

@viperML viperML closed this as completed Nov 30, 2023
NovaViper added a commit to NovaViper/NixConfig that referenced this issue Dec 2, 2023
- Re-enabled nh, fixed with viperML/nh/issues/37
- Changed Dolphin layout agian
- Made zsh history substring search use $terminfo keys
- Added Misterio77's xdg-portal HM plugin, nix-community/home-manager/pull/4707
- Reorganized and removed redundant code to make the flake more readable
- Made HomeManager generate nixpkgs/config.nix in order to properly retrieve custom nixpkgs settings again
- Updated desktop partition ids due to reinstall
- Added settings for gamemode
- Removed gamescope
- Python packages now available from Python 3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants