Skip to content

Needs additional Nix features? #1

@j340m3

Description

@j340m3

What i did

  1. Being on Windows, I downloaded virtualbox and the nixos viritualbox image https://nixos.org/download/#nixos-virtualbox
  2. Booting up the image and activating git temporarily via nix-shell -p git
  3. Downloading the repo via git clone https://git.vdx.hu/voidcontext/nixos-uconsole.git
  4. cd nixos-uconsole
  5. Running the command in the README.md: nix build .\#packages.aarch64-linux.\"sd-image-cm4-6.1-potatomania\" -L

Expected Behaviour
Nix builds an image that I can put on my sd-card, location `result/sd-image

Actual Result`

[nix-shell:~/git/nixos-uconsole]$ nix build .\#packages.aarch64-linux.\"sd-image-cm4-6.1-potatomania\" -L
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override

[nix-shell:~/git/nixos-uconsole]$ nix build .\#packages.aarch64-linux.\"sd-image-cm4-6.1-potatomania\" -L --extra-experimental-features
error: flag '--extra-experimental-features' requires 1 argument(s), but only 0 were given
Try 'nix --help' for more information.

[nix-shell:~/git/nixos-uconsole]$ nix build .\#packages.aarch64-linux.\"sd-image-cm4-6.1-potatomania\" -L --extra-experimental-features nix-command
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override

[nix-shell:~/git/nixos-uconsole]$ nix build .\#packages.aarch64-linux.\"sd-image-cm4-6.1-potatomania\" -L --extra-experimental-features nix-command --extra-experimental-features flakes
error:
       … while calling the 'import' builtin

         at /nix/store/1r9cs7jyb2jwjs558axv5mh62dx4jd9v-source/flake.nix:22:12:

           21|
           22|     pkgs = import nixpkgs {inherit system overlays;};
             |            ^
           23|

       … in the condition of the assert statement

         at «string»:66:13:

           65|           if node.flake or true then
           66|             assert builtins.isFunction flake.outputs;
             |             ^
           67|             result

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: failed to extract archive (Write failed)

Question
What am I doing wrong and could we update the README.md command to make it more clear, what to do? I have some NixOS experience but was shyed away from using flakes. Probably something that I have to look into now.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions