New User Errors on Rebuild

When I try to Rebuild my nixos I get errors (stuff below) I was trying to add steam, allow unfree software and better discord.

error:
… while evaluating the attribute ‘config’

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

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |         ^
      323|         _module = checked (config._module);

   … while calling the 'seq' builtin

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      323|         _module = checked (config._module);

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

   error: syntax error, unexpected '=', expecting end of file

   at /etc/nixos/configuration.nix:7:28:

        6| #Allow Unfree software
        7| nixpkgs.config.allowUnfree = true;
         |                            ^
        8| {

building Nix…
error:
… while evaluating the attribute ‘config’

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

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |         ^
      323|         _module = checked (config._module);

   … while calling the 'seq' builtin

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      323|         _module = checked (config._module);

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

   error: syntax error, unexpected '=', expecting end of file

   at /etc/nixos/configuration.nix:7:28:

        6| #Allow Unfree software
        7| nixpkgs.config.allowUnfree = true;
         |                            ^
        8| {

building the system configuration…
error:
… while evaluating the attribute ‘config.system.build.toplevel’

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

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |         ^
      323|         _module = checked (config._module);

   … while calling the 'seq' builtin

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      323|         _module = checked (config._module);

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

   error: syntax error, unexpected '=', expecting end of file

   at /etc/nixos/configuration.nix:7:28:

        6| #Allow Unfree software
        7| nixpkgs.config.allowUnfree = true;
         |                            ^
        8| {

It’s a syntax error, naturally, usually due to something like missing a semicolon on the previous line, or not putting the line inside an attrset, or so on…

If you share your config file it should be easy to identify

Solved it I did the wrong program.

I think discourse will let you mark your own comment as resolving it, so that it’s clear the thread doesn’t still need attention?

not sure how to resolve it I cant find a button to do that

It’s moved to the “Help” category now, the “solution” button should be visible now.