Hello, I’m trying to set up rsyncd in my configuration.nix. Typically you configure the service with the file /etc/rsyncd.conf, whereas NixOS has a set of configuration options for it [1]:
I can’t find much documentation on this, but the few examples I’ve found [1] [2] are throwing errors in nixos-rebuild:
while evaluating ‘isFunction’ at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:342:16, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:288:68:
syntax error, unexpected ID, expecting ‘.’ or ‘=’, at /etc/nixos/configuration.nix:803:11
That error is just due to spaces in option names, which can be solved by enclosing the option names in double quotes:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:570:27: A definition for option `services.rsyncd.settings.home.auth users' is not of type `INI atom (null, bool, int, float or string)'. Definition values:
- In `/etc/nixos/configuration.nix':
[
"bgibson"
]
As far as I know, that definition looks like a string, which should be accepted. Anyone know what the problem is here?