anchor.diff:  with lib;
   
   let
  +  cfg = config.systemd.coredump;
     systemd = config.systemd.package;
   in {
     options = {
  
positive.code:       "systemd/coredump.conf".text =
        ''
          [Coredump]
          ${config.systemd.coredump.extraConfig}
        '';
  
        # install provided sysctl snippets
  
negative.code:     };
      users.groups.systemd-coredump = {};
  
      boot.kernel.sysctl."kernel.core_pattern" = mkIf (!cfg.enable) "core";
    };
  }
  