mitchellh / nixos-config

My NixOS configurations.
https://twitter.com/mitchellh/status/1346136404682625024
MIT License
1.93k stars 191 forks source link

error while configuring nixos #40

Closed Rudra1106 closed 1 month ago

Rudra1106 commented 2 months ago

i am working on mac m1 , and trying to setup nixos in vmware fusion , But when trying to execute this step --> make vm/bootstrap0 , i'm getting this error :

building the configuration in /mnt/etc/nixos/configuration.nix... error: … while calling the 'head' builtin at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1575:11:

     1574|         || pred here (elemAt values 1) (head values) then
     1575|           head values
         |           ^
     1576|         else

   … while evaluating the attribute 'value'

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9:

      808|     in warnDeprecation opt //
      809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
         |         ^
      810|         inherit (res.defsFinal') highestPrio;

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

   error: nixVersions.unstable has been removed. For bleeding edge (Nix master, roughly weekly updated) use nixVersions.git, otherwise use nixVersions.latest.

make: *** [vm/bootstrap0] Error 1

error image :-

Screenshot 2024-06-22 at 11 14 26 PM
yysushi commented 2 months ago

I have seen the same issue. And confirmed the PR resolved it in my env vm-aarch64-utm.

Rudra1106 commented 2 months ago

I have seen the same issue. And confirmed the PR resolved it in my env vm-aarch64-utm.

Sorry but can u please elaborate a little on how to solve this issue if possible.

yysushi commented 2 months ago

in the above, I added one PR link describing how to update Makefile.

Screenshot 2024-06-24 at 11 00 44 AM

Rudra1106 commented 2 months ago

in the above, I added one PR link describing how to update Makefile.

Screenshot 2024-06-24 at 11 00 44 AM

in the above, I added one PR link describing how to update Makefile.

Screenshot 2024-06-24 at 11 00 44 AM

it worked !! thnk u veryyy much for your help .