Hey, ı’m new to NixOS.
I edited “/etc/nixos/configuration.nix” file to add “code” (aka VS Code) but it gave me this error.
“error:
… while evaluating the attribute ‘config’
at /nix/store/85vdli920k31b6qy3335s364g4kzwm5k-nixos-25.11.2403.76701a179d3a/nixos/lib/modules.nix:361:9:
360| options = checked options;
361| config = checked (removeAttrs config [ “_module” ]);
| ^
362| _module = checked (config._module);
… while calling the '**seq**' builtin
**at /nix/store/85vdli920k31b6qy3335s364g4kzwm5k-nixos-25.11.2403.76701a179d3a/nixos/lib/modules.nix:361:18**:
360| options = checked options;
361| config = checked (removeAttrs config \[ "\_module" \]);
| **^**
362| \_module = checked (config.\_module);
**(stack trace truncated; use '--show-trace' to show the full, detailed trace)**
**error:** syntax error, unexpected ID, expecting '.' or '='
**at /etc/nixos/configuration.nix:133:3**:
132| # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html ).
133| system.stateVersion = "25.11"; # Did you read the comment?
| **^**
134|
Command ‘nix-build ‘<nixpkgs/nixos>’ --attr config.system.build.nixos-rebuild --no-out-link’ returned non-zero exit
status 1.”
How can ı solve this?