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: unrecognised flag '--extra-experimental-features' #406

Closed
cawilliamson opened this issue Dec 25, 2021 · 2 comments · Fixed by divnix/bud#35
Closed

error: unrecognised flag '--extra-experimental-features' #406

cawilliamson opened this issue Dec 25, 2021 · 2 comments · Fixed by divnix/bud#35
Labels
bug Something isn't working

Comments

@cawilliamson
Copy link

I am trying to re-setup devos again on my system after dumping flakes for a while and am having a tricky time achieving it.

So far I've faced and overcome a bunch of problems but have overcome them with help on both open issues and by merging this in to my code: #403

However, the issue I'm facing right now I just can't seem to fix.

Expected Behavior

A build should start allow me to switch to if by using switch instead if I wish to.

Current Behavior

[nixos]$ bud rebuild thinkpad test
error: unrecognised flag '--extra-experimental-features'
Try 'nix --help' for more information.

Steps to Reproduce

  1. Git clone devos down
  2. Merge in PR: update digga #403 (excluding flake.lock - generate that myself)
  3. Attempt to build any host

Context

I am completely unable to build any host configs until I find out how to resolve this issue. :(

@cawilliamson cawilliamson added the bug Something isn't working label Dec 25, 2021
@Pacman99
Copy link
Member

So I think this might be because you have the wrong version of nix in your system. If your in nixos currently, did you set nix.package to nixUnstable/nixFlakes?
This is my way of reproducing your issue:

$ nix shell nixpkgs#nix_2_3
$ nix --extra-experimental-features
error: unrecognised flag '--extra-experimental-features'
Try 'nix --help' for more information.

You can also try hopping into a shell with nix 2.4 before running bud, with nix shell nixpkgs#nixUnstable, but I'm not sure how bud finds what nix binary to use, so I don't know how effective a shell will be.

@water-sucks
Copy link

water-sucks commented Dec 28, 2021

I think it's a problem with bud not finding the proper Nix version. I have exactly the same rev of nixUnstable and ran into the same issue even when doing it in a shell with nix shell nixpkgs#nixUnstable; however, I did find a workaround that allowed me to build it. I changed:

nixos.url = "github:nixos/nixpkgs/release-21.11";
latest.url = "github:nixos/nixpkgs/nixos-unstable";

to:

nixos.url = "github:nixos/nixpkgs/nixos-unstable";
latest.url = "github:nixos/nixpkgs/nixpkgs-unstable";

and ran bud update, and then the switch command worked. I did it out of a fresh clone of devos, though, so YMMV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants