Syntax error "inherit"

Does anyone know what “error: syntax error, unexpected file end, expected the word ‘inherit’” means? The command nix-instantiate --parse /etc/nixos/configuration.nix says there’s an error on line 133, even though there are only 132 lines.

This error occurred after “sudo nixos-rebuild switch --flake /etc/nixos#nixos”

In my experience this most often happens when missing a semicolon somewhere. But there’s no way we can meaningfully give help until you post your configuration.

I added the colon on 131 stroke myself at the end because I thought the problem was with it, but the error occurs both with and without the colon.

Find a pastebin you can curl your file to. I think termbin was ok. The issue will be a hanging let somewhere, but it’s not visible in that picture.

The last line does not need a semicolon.