There is a nix-home-manager module available in the repo as described in the relevant installation page.
Once you have installed it, you can set up automated calendar syncing as follows:
programs.smos = {
enable = true;
calendar = {
enable = true;
sources = [
{
name = "Personal";
destination = "calendar.smos";
source = "https://calendar.google.com/calendar/ical/example%40gmail.com/private-00000000000000000000000000000000/basic.ics";
}
];
};
};
See also the reference documentation for this home manager module.