-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"experimental feature 'ca-derivations' is disabled" even though it is enabled #4784
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/content-addressed-nix-call-for-testers/12881/53 |
@NobbZ is there something relevant in your |
@asymmetric I do not have such a file. |
I've just rebased on nixos-unstable and experiments something similar:
with ~/.config/nix/nix.conf It used to work fine, I haven't changed anything relevant, I ran two
|
even stranger
|
(for anyone hitting this, I was able to work around it with https://discourse.nixos.org/t/how-to-do-a-flake-build-in-non-nixos-system/10450/7) |
Make sure that the Nix `experimental-features` set by a user aren’t overwritten when running `nixos-rebuild --flake` by using `--extra-experimental-features` rather than `--experimental-features`. Fix NixOS/nix#4784
Duuuuh, that explains everything! So what happens is that NixOS/nixpkgs#123246 should fix it |
I did not use |
Duh, I knew I’d missed something 🤦♂️ |
@NobbZ do you also have the error if you run |
Yes, I have, and I also have to add that the error happens for any |
I also still have the issue with
|
Do BTW here is an undocumented feature - you can pass |
good idea, I had checked /etc/nix/nix.conf which enabled flake and nix-command but I also had a file /root/.config/nix/nix.conf with just nix-command in it (I have no recollection of ever creating that file but well it exists). Removing the latter fixed the issue. Thanks for sharing the undocumented feature, it worked as well. |
TBF, the
Wether this si sufficient as (indirect) documentaion though, I'm not so sure :) |
Note that |
@NobbZ It's probably better to open a new issue and reference this one. Otherwise, it may go unnoticed by the maintainers. |
Describe the bug
I wanted to try to rebuild the system in question using the new content addressable features, therefore I updated it to a recent stable release.
Whenever I try to build a CA enabled system config on that machine I get the following error:
The error does not change, even if I provide
--experimental-features 'ca-derivations flakes nix-command'
on the CLI explicitely.Also it is set in the
nix.conf
:Building any CA enabled system config on one of my other systems works fine.
Steps To Reproduce
nixpkgs.config.contentAddressedByDefault = true;
on the affected system.Expected behavior
A system configuration is built.
nix-env --version
outputAdditional context
The system where the problem occurs is quite an old machine with an Intel Core2Duo CPU and only 4 GiB of RAM, though I wouldn't expect this to cause the actual error.
In general the configuration of my systems is available at https://github.com/NobbZ/nixos-config
The most relevant file for the affected system is probably https://github.com/NobbZ/nixos-config/blob/master/nixos/hosts/legacy/delly-nixos.nix
If any further details about this system or any other in my setup are required just ask.
Please be aware that I won't have physical access to the affected machine for the next couple of days, only SSH until VPN or WiFi decides to crash.
The text was updated successfully, but these errors were encountered: