Need a second set of eyes to find the mistake

I have been using statix to clean up my code, and i have looked everywhere and not sure if i have too many }; or missing any,
Need a second set of eyes please look over my configuration.nix file

       at /nix/store/wcidiyklj0nrljlz5m3qlkvhv8f2ddv8-source/lib/modules.nix:322:18:

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

       … while evaluating a branch condition

         at /nix/store/wcidiyklj0nrljlz5m3qlkvhv8f2ddv8-source/lib/modules.nix:261:9:

          260|       checkUnmatched =
          261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
             |         ^
          262|           let

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

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

       at /nix/store/3w7jzxyx0hqrdsrma72s81b2cplls51f-source/configuration.nix:400:2:

          399|   system.stateVersion = "23.11"; # Did you read the comment?
          400| }
             |  ^
          401|```

try nix-instantiate --parse-only <your config> and it might offer you a clearer picture. I think you’re missing a semicolon and a closing bracket }.

1 Like