Problem with config file

hello when i change my config file to this

Set your time zone.

 time.timeZone = "America/New_York";

The global useDHCP flag is deprecated, therefore explicitly set to false here.

Per-interface useDHCP will be mandatory in the future, so this generated config

replicates the default behaviour.

networking.useDHCP = false;
networking.interfaces.enp3s0f1.useDHCP = true;
networking.interfaces.wlp2s0.useDHCP = true;

Configure network proxy if necessary

networking.proxy.default = “http://user:password@proxy:port/”;

networking.proxy.noProxy = “127.0.0.1,localhost,internal.domain”;

  Select internationalisation properties.
   i18n.defaultLocale = "en_US.UTF-8";
   console = {
     font = "Lat2-Terminus16";
      keyMap = "dvorak, us";
   };

changing the layout and the timezone because changing the layout the normal way doesnt make the gnome login screen dvorak so im trying this.

i get this error when running

[root@nixos:/home/scott]# nixos-rebuild switch --show-trace
error: while evaluating the attribute ‘config’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:64:5:
while evaluating ‘evalModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:21:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:58:12:
while evaluating ‘mapAttrsRecursiveCond’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:271:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:98:28:
while evaluating ‘recurse’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:273:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:281:8:
while evaluating the attribute ‘matchedOptions’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:373:14:
while evaluating ‘flip’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:138:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:341:23:
while evaluating ‘byName’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:321:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:329:21:
while evaluating ‘reverseList’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:393:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:90:33:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:208:37, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:86:25:
while evaluating ‘filterModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:198:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:209:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:202:31, called from undefined position:
while evaluating ‘loadModule’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:147:53, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:185:22:
while evaluating ‘unifyModuleSyntax’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:213:34, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:150:14:
while evaluating ‘applyIfFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:243:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:150:59:
while evaluating ‘isFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:333:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:243:68:
syntax error, unexpected ID, expecting ‘.’ or ‘=’, at /etc/nixos/configuration.nix:34:14
building Nix…
error: while evaluating the attribute ‘config’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:64:5:
while evaluating ‘evalModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:21:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:58:12:
while evaluating ‘mapAttrsRecursiveCond’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:271:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:98:28:
while evaluating ‘recurse’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:273:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:281:8:
while evaluating the attribute ‘matchedOptions’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:373:14:
while evaluating ‘flip’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:138:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:341:23:
while evaluating ‘byName’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:321:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:329:21:
while evaluating ‘reverseList’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:393:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:90:33:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:208:37, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:86:25:
while evaluating ‘filterModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:198:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:209:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:202:31, called from undefined position:
while evaluating ‘loadModule’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:147:53, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:185:22:
while evaluating ‘unifyModuleSyntax’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:213:34, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:150:14:
while evaluating ‘applyIfFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:243:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:150:59:
while evaluating ‘isFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:333:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:243:68:
syntax error, unexpected ID, expecting ‘.’ or ‘=’, at /etc/nixos/configuration.nix:34:14
building the system configuration…
error: while evaluating the attribute ‘config.system.build.toplevel’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:64:5:
while evaluating ‘evalModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:21:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/eval-config.nix:58:12:
while evaluating ‘mapAttrsRecursiveCond’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:271:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:98:28:
while evaluating ‘recurse’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:273:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:281:8:
while evaluating the attribute ‘matchedOptions’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:373:14:
while evaluating ‘flip’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:138:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:341:23:
while evaluating ‘byName’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:321:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:329:21:
while evaluating ‘reverseList’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:393:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:90:33:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:208:37, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:86:25:
while evaluating ‘filterModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:198:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:209:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:202:31, called from undefined position:
while evaluating ‘loadModule’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:147:53, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:185:22:
while evaluating ‘unifyModuleSyntax’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:213:34, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:150:14:
while evaluating ‘applyIfFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:243:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:150:59:
while evaluating ‘isFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:333:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:243:68:
syntax error, unexpected ID, expecting ‘.’ or ‘=’, at /etc/nixos/configuration.nix:34:14

can anyone help me?

edit: so just changing the timezone works. can anyone help me fix the layout thing. gnome works except the login screen is qwerty. i also have this

Configure keymap in X11

 services.xserver.layout = "dvorak, us";
 services.xserver.xkbOptions = "eurosign:e";

but it doesnt fix it

Hi!

The formatting is really hard to read, so I’m not sure which line, but you have a syntax error:

syntax error, unexpected ID, expecting '.' or '=', at /etc/nixos/configuration.nix:34:14

So you need to fix that. This is saying in the file /etc/nixos/configuration.nix at line 34, character 14, it’s expecting a . or =, but it got something else. That means something is wrong with that line.

What is that line in your config? or re-run the nixos-rebuild switch and then check the error, in case you modified the config since you posted this. Share both the line in the config and the error please.

You can use the triple backticks to quote, or use the little button above the text editor here for ‘preformatted text’.

`> # Select internationalisation properties.

it says this is my 34th line.

the # character is a comment, but the `and > characters in front of it will definitely not parse well.

I don’t know if nix includes comment lines as source input lines for these syntax error notes… I think it does, but I’m not sure.

so deleting a line of code that was supossed to add the non free liscense fixed that. do you know the right way to do that? thank you

see: FAQ/How can I install a proprietary or unfree package? - NixOS Wiki