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

error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override #300

Closed
tintin10q opened this issue Jun 10, 2022 · 8 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@tintin10q
Copy link

Describe the bug
When I tried to install I get error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override

To Reproduce
Steps to reproduce the behavior:

  1. Install nix
  2. Run nix profile install github:srid/emanote

Expected behavior
I would expect the command to work. You like you suggest it will on your how to install page here https://emanote.srid.ca/start/install

Desktop (please complete the following information):

  • Ubuntu 18.04.6 LTS
@tintin10q tintin10q added the bug Something isn't working label Jun 10, 2022
@tintin10q
Copy link
Author

I had to run nix profile install github:srid/emanote --extra-experimental-features nix-command --extra-experimental-features flakes for it to work. If this is now what is needed you should update the installation guide.

@srid
Copy link
Owner

srid commented Jun 10, 2022

I will update that documentation page, but you need to enable flakes by following the instructions here: https://nixos.wiki/wiki/Flakes#Installing_flakes

@srid srid added the documentation Improvements or additions to documentation label Jun 10, 2022
@srid
Copy link
Owner

srid commented Jun 10, 2022

This part I think,

image

@tintin10q
Copy link
Author

Ok I will try that

@srid srid closed this as completed in 6157ef9 Jun 10, 2022
@tintin10q
Copy link
Author

Thanks for updating this. Could you explain what the Nix cache does?

@srid
Copy link
Owner

srid commented Jun 12, 2022

Using the Nix binary cache will generally avoid compiling the software and its dependencies ... and instead, pull the built binaries directly from the binary cache specified. I'll add this to docs.

@danielkrajnik
Copy link

danielkrajnik commented Jan 1, 2023

Can someone please explain what needs to be appended where?
I've just tried running nix search librewolf and it yielded a similar error.
I've tried adding extra-experimental-features = flakes to ~/.config/nix/nix.conf, but it didn't do anything
it would be really helpful if nix had this functionality, which someone unfamiliar with the project would expect to work out of the box work out of the box

@srid
Copy link
Owner

srid commented Jan 2, 2023

@danielkrajnik See the instructions in this section: https://nixos.wiki/wiki/Flakes#Enable_flakes

shivaraj-bh pushed a commit to shivaraj-bh/emanote that referenced this issue Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants