LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2017, 05:12 AM   #1
joellapointe1717
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Rep: Reputation: Disabled
NixOS installation error


Hi,

I'm not a programming person. So my knowledge on the programming side is low. I didn't found a proper forum for NixOS, so I put my problem in the Linux-General section.

I tried to install NixOS as demonstrated trough internet. I edited the
Code:
/etc/nixos/configuration.nix
file to allow wifi networking and window manager with nano. Than I saved the file. Once I started the installation command
Code:
nixos-install
, an error occurred:
Code:
syntax error, unexpected ID, expecting '.' or '=', at /etc/nixos/configuration.nix:24:5
I tried to found the error, but nothing unusual in the file! I interpret that the
Code:
/configuration.nix:24:5
is the 24th line and 5th column of the text file. But nothing special at this emplacement in the file. I also did
Code:
nixos-install --show-trace
, here is the output:
Code:
[root@nixos:~]# nixos-install --show-trace
building the system configuration...
error: while evaluating the attribute ‘config.system.build.toplevel’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/nixos/lib/eval-config.nix:53:5:
while evaluating the attribute ‘config’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:87:25:
while evaluating ‘yieldConfig’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:74:29, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:73:16:
while evaluating ‘mergeModules’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:178:26, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:64:17:
while evaluating ‘mergeModules'’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:182:36, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:179:5:
while evaluating ‘concatMap’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/lists.nix:79:18, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:218:9:
while evaluating ‘reverseList’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/lists.nix:256:17, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:64:38:
while evaluating ‘closeModules’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:91:27, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:59:16:
while evaluating anonymous function at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/lists.nix:71:28, called from undefined position:
while evaluating anonymous function at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:93:49, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/lists.nix:71:31:
while evaluating ‘unifyModuleSyntax’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:108:34, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:99:11:
while evaluating ‘applyIfFunction’ at /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:132:29, called from /tmp/root/nix/store/43kx38h0vs61lmxkdvyjjzdgfshp8acb-nixos-17.03.1123.4a7a03913d/nixos/lib/modules.nix:99:39:
syntax error, unexpected ID, expecting '.' or '=', at /etc/nixos/configuration.nix:24:5
Thank you very much!

Joel
 
Old 05-13-2017, 03:43 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,393
Blog Entries: 10

Rep: Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212Reputation: 5212
you forgot an important detail:
What is NixOS? What are you trying to achieve?

furthermore:
Why are you editing that file?
what is the content of that file?
what do you expect those commands to accomplish?
 
Old 05-13-2017, 04:06 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,767

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
Been a while since I've seen anyone mention nixOS - last I looked at it they had an irc channel. Might be worth asking there.
 
Old 05-13-2017, 02:16 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Could you please post your configuration.nix? Because you seem to have the typo in the configuration file, but it is hard to say what it is without seeing the line (and the previous one, and maybe some more context)…

The trace just shows you how NixOS module system decided to load configuration.nix, so it doesn't help much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NixOS 16.03 Screencast and Screenshots jeremy Linux - Screencasts and Screenshots 2 04-08-2016 10:13 AM
LXer: NixOS 15.09 Screenshot Tour LXer Syndicated Linux News 0 10-04-2015 03:32 PM
NixOS 14.12 Screencast and Screenshots jeremy Linux - Screencasts and Screenshots 2 04-20-2015 10:01 PM
no way to connect wlan on nixos 14.04 bri_c Linux - Software 5 09-11-2014 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration