This adds an option ‘boot.kernel.sysctl’ and generates a file /etc/sysctl/nixos.conf read by systemd-sysctl.service.