anchor.diff:  
   let
     cfg = config.services.corerad;
  -
  -  writeTOML = name: x:
  -    pkgs.runCommandNoCCLocal name {
  -      passAsFile = ["config"];
  -      config = builtins.toJSON x;
  -      buildInputs = [ pkgs.go-toml ];
  -    } "jsontoml < $configPath > $out";
  +  settingsFormat = pkgs.formats.toml {};
   
   in {
     meta.maintainers = with maintainers; [ mdlayher ];
  
positive.code: 
    config = mkIf cfg.enable {
      # Prefer the config file over settings if both are set.
      services.corerad.configFile = mkDefault (writeTOML "corerad.toml" cfg.settings);
  
      systemd.services.corerad = {
        description = "CoreRAD IPv6 NDP RA daemon";
  
negative.code:     enable = mkEnableOption "CoreRAD IPv6 NDP RA daemon";
  
      settings = mkOption {
        type = settingsFormat.type;
        example = literalExample ''
          {
            interfaces = [
  