nixos-rockchip icon indicating copy to clipboard operation
nixos-rockchip copied to clipboard

Running nixos-install from SOQuartz SD image gives ` 'flakes' is disabled` error

Open msgilligan opened this issue 1 year ago • 3 comments

When I try to use the SoQuartz SD Image to install NixOS to NVMe, I get the following error:

error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override

Using sudo NIX_CONFIG="experimental-features = nix-command flakes" nixos-install seems to work-around the problem, but when installing to NVMe from other NixOS installer images this isn't required. It seems like installers created with this image require flakes without flakes being enabled.

Normally, to enable flakes I would edit /etc/nixos/configuration.nix (NixOS) or /etc/nix/nix.conf (Nix package manager only), but the first one didn't exist and the second strongly discouraged modification.

msgilligan avatar Oct 08 '24 20:10 msgilligan

I don't think this is specific to the Quartz image, rather to sdcard images with flake configs. Having the same issue on rock pi 4c

Diamondtroller avatar Apr 06 '25 21:04 Diamondtroller

@msgilligan do you know an elegant solution to this problem? If not I can just add instructions to the readme.

nabam avatar Sep 19 '25 17:09 nabam

Not off the top of my head. I would say just add the instructions for now.

msgilligan avatar Sep 19 '25 20:09 msgilligan