I’m trying to configure a simple Caddy server using a very simple module. The error message in the SSH console is as follows:
error: syntax error, unexpected '=', expecting end of file
at /etc/nixos/caddy.nix:1:16:
1| services.caddy = {
| ^
2| enable = true;
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:
For the following caddy.nix:
services.caddy = {
enable = true;
email = admin@mydomain.net;
config =
''
mydomain.net {
root /var/www/
}
'';
}