Error complaining that semicolon should go at the end of my configuration.nix file?

I don’t understand what the problem is. I was editing my configuration file and may have accidentally deleted? or added? something that is now giving me an error. I tried both putting a colon, and when that didn’t work a semicolon after the curly bracket at the end of the file, as I think the error is telling me. Neither worked. Following is the bottom of the error. The whole error is quite long.

929| isFunction = f: builtins.isFunction f ||
| ^
930| (f ? __functor && isFunction (f.__functor f));

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

   at /etc/nixos/configuration.nix:212:2:

      211|    };
      212| }
         |  ^
      213|

You’re missing a } and/or a ; somewhere else. Share the whole file if you want more help.

2 Likes